Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

HTML code in setErrorMessage() method #3764

Laba42 ·

I am developing my own step plugin in java. Is it possible to pass a string that contains an HTML code in the setErrorMessage() method?. So the message is displayed as HTML text in the error message panel
I have tried the following

setErrorMessage("Some plain text and some <b> bold text </b> \r\n");
or 
setErrorMessage("Some plain text and some &lt;b&gt; bold text &lt;/b&gt; \r\n");

But both do not work! The text "bold text" is not displayed bold.
Only the \r\n is displayed as a <br> in the source text.

Georg

  • replies 2
  • views 2679
  • stars 0
robinshen ADMIN ·

We escape html intentionally as otherwise some error messages may contain partial html tags causing it displayed improperly.

DannyPM ·

hello
Do you need help with HTML, css, bootstrap etc send me a private message I can help you for free.