You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Silence Tai (Jira)" <ji...@apache.org> on 2019/09/28 07:35:00 UTC

[jira] [Comment Edited] (TEXT-172) escapeHtml3, escapeHtml4 unable to encode apostrophe character

    [ https://issues.apache.org/jira/browse/TEXT-172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16939869#comment-16939869 ] 

Silence Tai edited comment on TEXT-172 at 9/28/19 7:34 AM:
-----------------------------------------------------------

According to the new title description. Reproduce the issue of encode.

 

If the problem is to encode single quotes, this problem does not need to be fixed. In HTML standard documents, single quotes do not have to be converted to symbol entities.


was (Author: tai):
According to the new title description. Reproduce the issue of encode.

> escapeHtml3, escapeHtml4 unable to encode apostrophe character
> --------------------------------------------------------------
>
>                 Key: TEXT-172
>                 URL: https://issues.apache.org/jira/browse/TEXT-172
>             Project: Commons Text
>          Issue Type: Bug
>    Affects Versions: 1.6, 1.8
>            Reporter: Govinda
>            Priority: Major
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> I tried unescaping the below character, but seems it is not working.
>  
> {code:java}
> System.out.println(StringEscapeUtils.unescapeHtml3 ("&#39;"));
> System.out.println(StringEscapeUtils.escapeHtml3 ("&#39;"));
> System.out.println (StringEscapeUtils.escapeHtml3 (StringEscapeUtils.unescapeHtml3 ("&#39;")));
>  
> System.out.println (StringEscapeUtils.escapeHtml4 (StringEscapeUtils.unescapeHtml4 ("&#39;"))); 
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)