comments
just this code in my posting form that turns ampersands that don't appear to be part of an entity (named or numbered) already into "&":
$entry = preg_replace("/&(?!(\w+|#\d+);)/", "&", $entry);» jim (link) » january 5, 2003 9:35am
this entry is closed to new comments.
"i've got something similar that turns ampersands (&) into the correct entity, even when i don't type them that way (or there are ampersands in urls that i cut&paste into place). just part of keeping my site validating as xhtml 1.0 strict."
What's that if you don't mind my asking?