5.92: $options->TableTitle = keeps HTML

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1160
Joined: 2019-05-21 22:42
Location: Germany
Contact:

5.92: $options->TableTitle = keeps HTML

Post by onoehring » 2020-11-17 14:20

Hi,

I am using

Code: Select all

$options->TableTitle = $newTableTitle;
to set the page title. The variable $newTableTitle contains HTML. Example:

Code: Select all

$newTableTitle = "my title (<a href="somepage.php">go here</a>)";
Looks like this:
ag_title2.png
ag_title2.png (3.81 KiB) Viewed 3205 times
It seems that AG takes the complete string to also name the page like this.
I would expect that the page title - which can be seen in the browser - get's cleaned of HTML tags.
So the title, when I hover the browser tab should read "my title" (maybe prefixed by the application title), but not like it does now:
ag_title.png
ag_title.png (10.73 KiB) Viewed 3205 times
I might have some JS hidden (can not find it right now) that created that title - so I am not 100% it's AG or it's "me".

Olaf

Post Reply