Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

html encode error #18

Closed
jangarita opened this Issue · 2 comments

3 participants

@jangarita

I found an error in htmlEncode.as when i try to encode a string with several special characters.

I also found 2 solutions...

  1. Switch line 8 and 9, the first one should be

  2. Using this method
    return new XML(new XMLNode(XMLNodeType.TEXT_NODE, s)).toXMLString();
    to decode use this...
    return new XMLDocument(s).firstChild.nodeValue;

@chrisdeely
Owner

Can you make the changes and issue a pull request?

@mimshwright mimshwright referenced this issue from a commit
@mimshwright mimshwright fixed issue #18 322a848
@mimshwright
Owner

fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.