Q:

How to render html in addError method

Could you please advise How to render html in addError method?
I am trying to display a html link in an error message that gets triggered up on insert.
The problem is that the entire html shows up along with the error message as a label.
Could you please advise How to render html in addError method?

A:

Try using the method: addError(String errorMsg, Boolean escape) and pass in the 2nd parameter as false to have the HTML rendered.
For example:
addError('<p>An Error has occurred</p>', false);

