I use action_text with a model and need to type in links using liquid template variables, for example:
Contact us at: <a href="mailto:support@{{website.domain_name}}">support@{{website.domain_name}}</a>
However action_text breaks these links by encoding the curly brackets :( it also does it in src img tags src attributes :(
Contact us at <a href="mailto:support@%7B%7Bwebsite.domain_name%7D%7D">support@example.com</a>
It does the same if I use my own tags eg [domain_name] anywhere in href or src attributes.
I just want my HTML to be left alone, untouched, exactly as I enter it, I don't need any "help" encoding URLs tfank you very much action_text/Rails.
Is there a way to fix or disable this unwanted behavior?
Later edit:
Turns out this trix thing is also removing any other HTML such as tables, divs and so on :( it even removes HTML data- attributes :(( how do I disable this? I just want a friendly HTML editor with basic functions (bold, underline, paragraphs, headings...)