Translate-plugin: Angle brackets and double quotes (`<`, `>`, `"`) rendered incorrectly inside plugin's documentation on octobercms.com

Created on 16 Sep 2020  路  3Comments  路  Source: rainlab/translate-plugin

The documentation on https://octobercms.com/plugin/rainlab-translate shows code examples like:

Event::listen('translate.localePicker.translateParams', function($page, $params, $oldLocale, $newLocale) {
    if ($page-&gt;baseFileName == 'your-page-filename') {
        return YourModel::translateParams($params, $oldLocale, $newLocale);
    }
});
{{ form_open() }}
&lt;select id='I18N_SELECT'&gt;
    &lt;option value=&quot;none&quot; hidden&gt;&lt;/option&gt;
    {% for code, name in locales %}
        {% if code != activeLocale %}
            &lt;option value=&quot;{{code}}&quot; name=&quot;locale&quot;&gt;{{code | upper }}&lt;/option&gt;
        {% endif %}
    {% endfor %}
&lt;/select&gt;
{{ form_close() }}

where the <, > and " characters are displayed as &lt;, &gt; and &quot;.

Bug Website / Marketplace / Docs

All 3 comments

@LukeTowers is this due to some double-encoding happening on the marketplace?

@bennothommo it would make sense since it's properly rendered on github...

Yes @bennothommo, it's something that @daftspunk is going to have to fix.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

plyusninva picture plyusninva  路  6Comments

Ladylain picture Ladylain  路  3Comments

RodrigoGalter picture RodrigoGalter  路  4Comments

o0alexela0o picture o0alexela0o  路  4Comments

stidges picture stidges  路  6Comments