jquery-encoder icon indicating copy to clipboard operation
jquery-encoder copied to clipboard

encoder removing double br

Open ricmetal opened this issue 13 years ago • 2 comments

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 avatar Sep 02 '11 21:09 ricmetal

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

ricmetal avatar Sep 03 '11 22:09 ricmetal

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

chrisisbeef avatar Oct 06 '11 19:10 chrisisbeef