@Hongyi Zhao: As you wrote in the duplicate bug, my simplistic code in
comment #2, which only escapes the '<' character, would not be
sufficient. At the same time the issue I mentioned, about --no-markup
making \n being displayed literally instead of interpreted as a newline,
still stands.

Probably this variant would do it:

TEXT=$(printf '%s' "$TEXT" | sed 's/&/\&amp;/g;
                                  s/</\&lt;/g;
                                  s/>/\&gt;/g;
                                  s/"/\&quot;/g; 
                                  s/'"'"'/\&#39;/g')

But before making the change, I would appreciate some feedback from you
or others that that addition to /etc/gdm3/config-error-dialog.sh would
address the issues you have observed.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm3 in Ubuntu.
https://bugs.launchpad.net/bugs/1887252

Title:
  config-error-dialog.sh should pass --no-markup

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1887252/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to