top of page

Removing HTML Tags from SMS Messages in Zapier

Published on May 17th, 2024

In today's fast-paced digital environment, integrating various services to create efficient workflows is more important than ever. For those utilizing Zapier to connect their tools and automate tasks, having clean and readable SMS messages is crucial. If you've ever encountered the issue of unwanted HTML tags appearing in your automated SMS messages, you're not alone. Let's explore how you can remove HTML code when using Zapier to send an SMS.


Understanding HTML in SMS Messages


Initially, it's essential to recognize that SMS is a plain text medium. This means that any HTML tags included in your message won't be processed as they would be on a web page; instead, they will appear as literal text, which can render the message difficult to read and unprofessional.


Using Zapier Formatter to Remove HTML Tags



  1. Add a Formatter Step: After setting up your trigger and before the SMS action, add a 'Formatter by Zapier' step to your Zap.

  2. Select 'Text' for the Formatter Type: Choose 'Text' as the input type since the HTML is in text format.

  3. Set the Action: Pick 'Strip HTML from Text' as the action. This will remove any HTML tags from the string you feed it.

  4. Input the Text with HTML: Provide the text that contains HTML code in the 'Input' field of the Formatter step.

  5. Test & Continue: Before proceeding, ensure that the Formatter is working correctly by testing this step. You should see the text output without any HTML tags.

  6. Use the Cleaned Text in Your SMS Action: Lastly, in the SMS action step, use the output from the Formatter in the message body.


Handling Complex HTML


If your HTML contains more complex elements or styles, or if the 'Strip HTML from Text' action doesn't yield the desired results, you may need to apply additional steps or utilize custom code action if available in your Zapier plan.


Conclusion


By following the steps outlined above, you can ensure your automated SMS messages via Zapier are crisp, professional, and free of any distracting HTML code. This adherence to clarity not only upholds professionalism but also enhances communication efficiency in your automated workflows.


Remember, maintaining a clean and clear presentation in your SMS communications reinforces the quality of your service and brand image.


bottom of page