Skip to content
Myles Braithwaite edited this page Apr 1, 2016 · 5 revisions

Surrounded an ampersand (i.e. &) with a <span> with a styled class.

Input:

<p>{{ "this & that" | amp }}</p>

Output:

<p>This <span class="amp">&amp;</span> That</p>

Example CSS:

.amp {
    font-family: serif;
    font-style: italic;
    color: #a9a9a9;
}
Clone this wiki locally