Jan 29, 201911:42 AM - edited Jan 29, 201911:43 AM
Member | Partner
Print field within href="" without <div>
SOLVE
Hi there, I created a custom module which contains a text field called 'url' I'd like to print this field within an `href` but hubspot's <div> gets printed inside breaking the html.
You might find this thread helpful, it recommends using text instead of inline-text.
However, if you're working within a custom module I'd recommend using the "Fields" option on the left-hand side to insert fields:
In this case, using {{ module.text_field }} or {{ item.text_field }} in a repeater (in this case I've left the default name "text field") should just print the text with no additional markup.
You might find this thread helpful, it recommends using text instead of inline-text.
However, if you're working within a custom module I'd recommend using the "Fields" option on the left-hand side to insert fields:
In this case, using {{ module.text_field }} or {{ item.text_field }} in a repeater (in this case I've left the default name "text field") should just print the text with no additional markup.