No doubt you’ve already come across the new WordPress filter. It protects you and me from malicious people who would like to steal your login information, bank details and first-born child.
Unfortunately it also does some annoying things.
One of those is so strip attributes from html tags. A common one that I’ve stumbled across is the IMG tag.
In my carefree days long ago, I would do <img src=”someurl”> and be done with it, but not any more. Kses adds a “/” at the end and if there isn’t a space after the src=”” bit, it strips that out! Grrr!
So, what have we learned? <img src=”someurl” /> works but
<img src=”someurl”> doesn’t.
A Nice Traffic light, hosted on Flickr.