commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (TEXT-40) Escape HTML characters only once
Date Tue, 27 Dec 2016 09:09:58 GMT


ASF GitHub Bot commented on TEXT-40:

Github user PascalSchumacher commented on the issue:
    Thanks Sampanna!
    It would be nice if you would close this pull request. (I can not do it easily as this
is a read-only repository.)

> Escape HTML characters only once
> --------------------------------
>                 Key: TEXT-40
>                 URL:
>             Project: Commons Text
>          Issue Type: Improvement
>            Reporter: Sampanna Kahu
>            Priority: Minor
>              Labels: features, newbie
> If already escaped HTML characters are in the input test, they get escaped again using
> For example:
> If the input is:
> 100 kg & l t ; 1000kg <without the spaces>
> Then the output of escapeHtml4() becomes:
> 100kg & amp ; l t ; 1000kg <without the spaces>
> At my workplace, we felt the need for a method in StringEscapeUtils which does not escape
already escaped characters.
> I have attempted to create this method. Creating a pull request soon.

This message was sent by Atlassian JIRA

View raw message