Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4832da1 authored by Marc Blank's avatar Marc Blank
Browse files

Use ' for apostrophe in HTML encoding

* We were using ' which is not correct

Change-Id: I4872da7d5e19f18ecd570dbcaac295020d66681c
parent fe07b9a2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1325,7 +1325,11 @@ public class TextUtils {
                sb.append("&"); //$NON-NLS-1$
                break;
            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;
            case '"':
                sb.append("""); //$NON-NLS-1$