Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoder removing double br #4

Open
ricmetal opened this issue Sep 2, 2011 · 2 comments
Open

encoder removing double br #4

ricmetal opened this issue Sep 2, 2011 · 2 comments

Comments

@ricmetal
Copy link

ricmetal commented Sep 2, 2011

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
Copy link
Author

ricmetal commented Sep 3, 2011

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants