demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

removeJs didn't strip the whitespace as we expected #1633

Closed demianturner closed 11 years ago

demianturner commented 11 years ago

per the doc here(http://trac.seagullproject.org/wiki/Howto/WorkingWithTheRequestObject), "whitespace at the beginning and end of the strings is removed ".this work well when we call $req->get() without the second parameter.however,when will allow to enable html,the whitespace won't get stippted because of the last line code of SGL_String::removeJs :

{{{ return SGL_String::trimWhitespace($clean); }}}

never get executed.

my another prob is how will we do if someone want to keep the whitespace

demianturner commented 11 years ago

[demian](In [3843]) fixed whitespace prob with stripping js, fixes #1633