I created a custom D8 module with all text strings declared in English, either via this->t(), t() or in various configuration (YML) files.
I am now in the process of translating those strings in French so that I can then extract them and package them with the module.
My issue: some strings for the interface contain HTML links (mostly refering to other Drupal admin pages); they display and work fine in English, but when I try to translate those strings via the Drupal UI, I get an error saying "The submitted string contains disallowed HTML". If I remove the
<a> then the error disappears.
Here's an example of a string containing several links:
$this->t('<p>Some explanations here. You can find a more information <a href=@hhelp>on the help page</a>.<br>Note: after changing this value, you may have to <a href=@hperformance>clear the cache</a> for this setting to take effect.</p>', array( '@hhelp' => '../../help/mymodule', '@hperformance' => '../development/performance', )),
Is it possible to translate those strings while keeping the links in the translation? How should I proceed?