Skip to content
  • There are no suggestions because the search field is empty.

How do you remove HTML tags from your description?

In DataFeedWatch, you can remove HTML tags using 'Strip HTML' in 'Edit Values' or a regular expression (RegExp). This article explains both methods.

 

To remove your HTML tags from your description

Why is it so useful? 

While you can include HTML elements within the description attribute, it's generally not recommended, as Google's search engine may either remove them or display them incorrectly.

1. Go to the Mapping

2. Look for the description field.

3. Ensure that you used Use to set up your mapping rule. 

4. Click Edit Values

edit_values_for_use

5. From the first drop-down Mapping type, select Strip HTML.

select_strip_html

6. If you want to keep basic HTML tags for formatting, check the box  Keep basic formatting

keep_basic_formatting

 

7. Click Done to save changes. 

 

💡If you check off 'Keep basic formatting,' the following HTML tags will be preserved:

  • – Defines a paragraph.

  • – Makes text bold.

  • – Italicizes text.

    • – Creates a bulleted list.

      1. – Creates a numbered list.

      2. – Defines each list item within
          or
            .


          1. – Inserts a line break, useful for separating text.

          2. – Displays text as subscript (e.g., H₂O).

          3. – Displays text as superscript (e.g., x²).

          4. – A block-level container used to structure content and apply styling.

          5. – An inline container often used for styling parts of text within a paragraph.

          6. – Defines a description list, useful for key-value pairs or definitions.

          7. – Defines a term within a description list.

          8. – Defines the description or explanation of the term inside

 


 

To remove HTML tags from any field using the RegExp: 


In this article, we based on the description field to explain how to remove the HTML tags. But remember, you can use this trick with any other field in your mapping. ✨


  1. Select the field where you want to remove the tag. 
  2. Click Edit Values. 


    edit_values_for_use

  3. As a mapping type, select Remove Single Value from the drop-down. 
  4. In the field Input, paste the value: <[^>]*>
  5. Click Confirm.
  6. Check off the use regexp box below the field.
  7. Click Done.
  8. To save the new settings, click Save and Proceed.
     use_regexp_html_tags

In the selected field, any text appearing between "< " and ">" (like
,
, etc.) will be removed.