XHTML valid pagetitle/longtitle
on 13-Sep-2009 | Comments ( 6 ) Tags: Evolution
Update: use the htmlent modifier. More info about htmlent on PHx wiki
Old stuff below
Start by creating a new snippet called phx:htmlspecialchars. Make sure you have PHx installed.
Paste the following code:
<?php return htmlspecialchars($output); ?>
Use it with document variables like:
[*pagetitle:htmlspecialchars*]
or in your Ditto/Wayfinder template like:
[+pagetitle:htmlspecialchars+]
There might be a plugin solution to this problem. Post a comment if you know one.
Write a comment
Posts: 4
Reply #6 on : Mon September 14, 2009, 11:36:54
Posts: 2
Reply #5 on : Mon September 14, 2009, 14:03:14
Posts: 4
Reply #4 on : Mon September 14, 2009, 18:46:13
Posts: 4
Reply #3 on : Mon October 19, 2009, 06:21:57
Posts: 2
Reply #2 on : Mon October 26, 2009, 07:29:01
Posts: 4
Reply #1 on : Sat March 27, 2010, 12:21:47