esmero / archipelago_subtheme

Bare bone Archipelago Bootstrap4 Theme
0 stars 5 forks source link

ISSUE 11: Fixes double encoding of BootStrap barrio #12

Closed DiegoPino closed 5 years ago

DiegoPino commented 5 years ago

What is the problem?

See #11

Quick: Since Bootstrap barrio moves input submit buttons into HTML button elements, those button values get double encoded generating the annoying > to be displayed instead of >. This simple fix (with a 2 hour research.. damn) solves that problem.

The Fix

Use the raw value for the button output since the preprocessor and every other twig output chain before this already escaped the values we want to show. In practice what we do here is:

{{ attributes.value|raw  }}
DiegoPino commented 5 years ago

Thanks @giancarlobi. True, not everybody needs it, but it was a good, coming back from "vacations", riddle to solve =)