# Print field within href="" without \<div\>

**URL:** <https://community.hubspot.com/t/print-field-within-href-without-div/12649>\
**Category:** CMS Development\
**Created:** [January 29, 2019, 4:42pm UTC](https://community.hubspot.com/t/print-field-within-href-without-div/12649 "2019-01-29T16:42:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaximSiebert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/maximsiebert/32/35608_2.png) [@MaximSiebert](https://community.hubspot.com/u/MaximSiebert)\
**Post date:** [January 29, 2019, 4:42pm UTC](https://community.hubspot.com/t/print-field-within-href-without-div/12649/1 "2019-01-29T16:42:20Z")

</div>

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.  
My markup looks like

`<a class="mt-auto" href="{% inline_text field="url" value="{{ item.url }}" %}" target="_blank">Read More</a>`

How can I achieve this?

---

<div class="post-metadata">

**Author:** ![Stephanie-OG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stephanie-og/32/73267_2.png) [@Stephanie-OG](https://community.hubspot.com/u/Stephanie-OG)\
**Post date:** [January 29, 2019, 4:53pm UTC](https://community.hubspot.com/t/print-field-within-href-without-div/12649/2 "2019-01-29T16:53:01Z")

</div>

Hi Maxim,

You might find [this thread](https://community.hubspot.com/t5/CMS-Development/Convert-inline-text-field-to-URL-Slug/td-p/202803) 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:

 ![text-field.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/b/1b72bda5bd012929596738b7da534014cc50968c.png)

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.

I hope that helps!

* * *

**Stephanie O’Gay Garcia**

HubSpot Design / Development

[Website](http://www.stephanieogaygarcia.com?utm_source=HubSpotCommunity) | [Contact](http://www.stephanieogaygarcia.com/contact?utm_source=HubSpotCommunity)

_If this helped, please mark it as the solution to your question, thanks!_

---

<div class="post-metadata">

**Author:** ![MaximSiebert](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/maximsiebert/32/35608_2.png) [@MaximSiebert](https://community.hubspot.com/u/MaximSiebert)\
**Post date:** [January 29, 2019, 5:00pm UTC](https://community.hubspot.com/t/print-field-within-href-without-div/12649/3 "2019-01-29T17:00:28Z")

</div>

Amazing, that worked! Thanks @Stephanie-OG
