am 094bf51e: Use ' for apostrophe in HTML encoding DO NOT MERGE
* commit '094bf51ec0911057263a27db4d79db4eface2d63': Use ' for apostrophe in HTML encoding DO NOT MERGE
This commit is contained in:
@@ -1325,7 +1325,11 @@ public class TextUtils {
|
|||||||
sb.append("&"); //$NON-NLS-1$
|
sb.append("&"); //$NON-NLS-1$
|
||||||
break;
|
break;
|
||||||
case '\'':
|
case '\'':
|
||||||
sb.append("'"); //$NON-NLS-1$
|
//http://www.w3.org/TR/xhtml1
|
||||||
|
// The named character reference ' (the apostrophe, U+0027) was introduced in
|
||||||
|
// XML 1.0 but does not appear in HTML. Authors should therefore use ' instead
|
||||||
|
// of ' to work as expected in HTML 4 user agents.
|
||||||
|
sb.append("'"); //$NON-NLS-1$
|
||||||
break;
|
break;
|
||||||
case '"':
|
case '"':
|
||||||
sb.append("""); //$NON-NLS-1$
|
sb.append("""); //$NON-NLS-1$
|
||||||
|
|||||||
Reference in New Issue
Block a user