Not a bug Use font awesome in phrases

If you go to a prefix phrase, it actually has a note saying you may use the icon code given. Even if being able to replace a prefix phrase is not possible, the note saying it is should not be shown. It also says html may be used, but it can't.

prefix.webp
 
Any phrase may contain HTML, but the HTML might be escaped in certain places where phrases are rendered. This is at the discretion of the render-site and not the phrase definition, so we have no way of knowing if this will be the case ahead of time. It can even be the case that it is escaped in some places and not in others.

When using the dedicated prefix editing interface, we note that HTML is allowed for the description only:

1736557637691.webp

We expect prefix titles to be text-only (certain places where the titles are rendered necessitate this). You can set a custom prefix class and use Less to display an icon where supported instead:

Less:
.some-prefix-class::before
{
    .m-faIcon(@fa-var-phone);
}
 
Back
Top Bottom