[Solar-talk] html formatting and escape()
Jeff Surgeson
solar at 3hex.com
Mon Jul 3 13:32:04 PDT 2006
Hi Paul
I am trying to allow some basic html formatting, <b></b> <i></i> in a
textarea, however $this->escape($item['description']) only returns nicely
escaped html.
When I look at your escape function you are only using htmlspecialchars() so
if I echo $this->escape($item['description']) and variable
$item['description'] contains the string "<a href='test'>Test</a>" it should
return something like <a href='test'>Test</a>
But it does not, it only returns nicely escaped text "<a href='test'>Test</a>"
Am I missing something here?
--
Jeff Surgeson
More information about the solar-talk
mailing list