?

Log in

No account? Create an account
LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

September 5th, 2001

HTML Escaping and crap... [Sep. 5th, 2001|01:23 am]
LiveJournal Development

lj_dev

[whitaker]
This is quick. I noticed that my poll creator messes up if you put, for instance, an IMG tag as an option, or in the text of a question, etc.

So first I need to &ehtml the stuff so that it'll display properly in the VALUE="blahblah" section of the input elements when they are still creating the form.

That's no problem. Then when they click "Generate" I need to undo the &ehtml stuff, and I'm thinking I should also run it through the HTML cleaner? Only prob, I don't know jack about the HTML cleaner... and is this even the "right" way to do it?

So I guess I need: A) help with undoing the ehtml (I assume there's a function somewhere that I'm missing) and B) help with LJ::CleanHTML. What HTML tags to allow? Etc? Maybe I should just use the &LJ::CleanHTML::clean_subject stuff? I dunno.
link2 comments|post comment

navigation
[ viewing | September 5th, 2001 ]
[ go | Previous Day|Next Day ]