1
I have noticed that although ampersands are converted to their html entity for article body text, it is not the case with title fields.
Is there a way I can fix it so that html entities are used in other fields that display on the page?
For example, in 'News' (1.53) I found the title field code:
$sform->addElement(new XoopsFormText(_NW_TITLE, 'title', 50, 255, $title), true);
This appears to use a class (XoopsFormText) in class/xoopsform/formtext.php. Should I be looking to alter this class in some way, or am I on the wrong route completely?
Any guidance would be appreciated!
BTW The reason I need to do this is that adding an un-escaped ampersand makes the page W3C invalid HTML. I don't really want to tell my users they cannot use ampersands.
A thread is for life. Not just for Christmas.