Page 1 of 1

5.92: $options->TableTitle = keeps HTML

Posted: 2020-11-17 14:20
by onoehring
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 3700 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 3700 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