Skip to content

HTML in JSON not rendered #22

@frontshift

Description

@frontshift

First of all thanks for this awesome module. I really like the idea of using directives instead of filters to increase performance....

Currently it's not possible to have HTML as part of the localised copy because the content is being set as text on the element.

It would be really handy to have this functionality to force line breaks etc. e.g.:

   {
        "key": "component.title",
        "value": "my title and this</br>goes onto the second line",
        "description": ""
    }

The fix is as simple as using element.html() instead of element.text() when setting source values...

Do you see any issues with that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions