chrisisbeef / jquery-encoder

Contextual Output Encoding for jQuery
MIT License
86 stars 25 forks source link

encoder removing double br #4

Open ricmetal opened 13 years ago

ricmetal commented 13 years ago

hi

im passing some content through the encoder with encodeForHTML, but the encoder is removing some br tag from the content. when they are two in a row i only end up with one. why? any help solving this?

regards

ricmetal commented 13 years ago

hi apparently the encoder is'nt doing a consistent job. sometimes double brs get parsed as two line breaks. weird thing is that the raw code for two br tags are repeated the same 3 times in my data, but only once do they get treated as two line breaks.

if anyonecould help...

this is what the raw data looks like for every double br situation:

%0D%0A%0D%0A

i then decode it before passing it through the encoder

but the encoder doesnt not always treat these as two line breaks, which is inconsistent and weird.

any help?

thanks

chrisisbeef commented 13 years ago

Can you attach the snippet of code that is producing the inconsistent output so I can take a look at it?