I tried to generate help text for a Choice Field in my Django form with
i_agree = forms.CharField(label="", help_text="Initial to affirm that you agree to the <a href='/contract.pdf'>contract</a>.", required=True, max_length="4")
However, the raw HTML is rendered as output in the help text. How do I input HTML into the help text of a Django form field?
You can use
mark_safein the model to indicate the html is safe and it should be interpreted as such: