Home > Shopify Development > Liquid strip_html: How to Remove HTML Tags from String

Liquid strip_html: How to Remove HTML Tags from String in Shopify

Sam Nguyen
Sam Updated: May 07, 2024


Drive 20-40% of your revenue with Avada
avada email marketing

Liquid is known as one of the best tools of Shopify to build a professional website. In Shopify, online sellers will use the latest version of Liquid with a significant number of Liquid codes types such as objects, tags, and filters. To display the store data, the Liquid provides the objects to. Besides, it helps the Shopify users manipulate storefront. Thank the valuable asset as Liquid, the online merchants to have professional stores websites including product representing and the beautiful appearance.

Such a flexible and safe language, Liquid is used in many website and applications. Along with the popularity of Liquid in Shopify marketplace, online sellers have more demands in configuring the Liquid in their admin dashboard. In these last articles about Liquid strip such as Liquid strip: How to Remove Whitespace tabs, spaces, and newlines, we introduced the Shopify store owners to remove the Whitespace tabs, spaces, and newlines from String both the Left and the Right Sides.

However, sometimes the Shopify store owners do not want to link their stores or give additional HTML links. Therefore, they wish to remove the HTML code. This article How to Remove HTML Tags from String in Shopify will bring the users simple steps to strip their HTML in their shops.

How to Remove HTML Tags from String in Shopify

About HTML

HTML Tags was firstly published on the Internet with the detail description in late 1991. As an innovation of human being, HTML includes 18 elements comprising the initial, which creates the structure of an online document from headings, paragraphs, lists, links, quotes, etc. Besides, the Hypertext Markup Language strongly and relatively influence to web pages and web applications. Although this HTML has a simple design, HTML elements can have attributes to provide additional information.

The way to remove HTML tags from string

Step 1: Input

The Shopify store owners log into their admin dashboard, and then they can add these code strip_html at the end of this link to remove their HTML. Below is the example:


{{ "Have <em>you</em> read <strong>Ulysses</strong>?" | strip_html }}

Step 2: Output

. The result of this process is that we enable removing HTML the Shopify store owners to leave their content with only plain text like that:


Have you read Ulysses?


When removing an HTML in the Shopify content, it is necessary for the Shopify store owners to follow the above steps. This article How to Remove HTML Tags from String in Shopify with the simple steps to strip the hyperlink under their texts. Besides, online merchants can read more about Liquid topics such as the following:

Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.

Stay in the know

Get special offers on the latest news from AVADA.