Hi,
I have an issue building a custom quote template.
The comments field when building a quote allows for HTML markup, including links, lists, and text styling. On the quote I render the field using {{ QUOTE.hs_comments }}. But this rendered field strips out all the HTML markup and always returns plain text. How can I keep the HTML markup?
Hi, @MStierum
This one is tough to diagnose with the available information. Here are a few things we can try and see if it gets you closer to understanding the root issue.
- Can you please share the relevant portion of your custom quote template code dealing with {{ QUOTE.hs_comments }}
- Try testing with the Basic template in HubSpot to see how it handles the comments section. Essentially, try playing “spot the difference”
- Here’s what a rendered quote looks like using a custom template from my test portal
The issue you shared seems like either something isn’t set correctly for the module, and it’s not functions as rich text. Or there is some other reason the markup is being sanitized from your custom template.
Thanks for the additional information! — Jaycee