{% block body_js %} <script> $(document).ready(function() { var helpTexts = $('.help-text'); $.each(helpTexts, (i, helpText) => { $(helpText).html($(helpText).text().replace(/\[([\w\s\d]+)\]\((https?:\/\/[\w\d./?=#]+)\)/, '<a href="$2" target="_blank">$1</a>')) }); }); </script> {% endblock %}