1
thecloud
Xoops Faq (and Forum) bad html entities
  • 2004/3/17 8:21

  • thecloud

  • Just popping in

  • Posts: 4

  • Since: 2004/3/17


If you post a message in the faq and you want & to appear as code, you will have to write:
- the entity for the & sign (entity delimiter)
- the "amp" word
- the ; (entity delimiter)

If you edit&save the post you will see the entities goes into chars so the & will be converted in & and on the next save the content is modified.
This will render the html code not XHTML compliant.

To solve this, in the xoopsfaq/admin edit the index.php file.
Goto line 219 and edit this line:
$contents_contents = $myts->makeTareaData4Edit(myrow['contents_contents']);
change it to:
$contents_contents = $myts->makeTareaData4Edit(htmlentities($myrow['contents_contents']));

Same problem seen on this forum!

Login

Who's Online

140 user(s) are online (98 user(s) are browsing Support Forums)


Members: 0


Guests: 140


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits