{"id":1916,"date":"2022-03-25T14:42:31","date_gmt":"2022-03-25T14:42:31","guid":{"rendered":"https:\/\/www.toponecrm.com\/blog\/?p=1916"},"modified":"2022-04-11T16:13:07","modified_gmt":"2022-04-11T16:13:07","slug":"how-to-remove-html-tags-when-sending-an-automated-email-and-display-contents-properly-power-automate","status":"publish","type":"post","link":"https:\/\/toponecrm.com\/blog\/dynamics-365\/how-to-remove-html-tags-when-sending-an-automated-email-and-display-contents-properly-power-automate\/","title":{"rendered":"How to replace HTML tags when within automated email and display content properly ? &#8211; Power Automate)"},"content":{"rendered":"\n<p>When you  create a work flow and face a problem with the output is displaying HTML code like the image below: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"731\" height=\"392\" src=\"https:\/\/www.toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-25.png\" alt=\"\" class=\"wp-image-1956\" srcset=\"https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-25.png 731w, https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-25-300x161.png 300w, https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-25-350x188.png 350w\" sizes=\"(max-width: 731px) 100vw, 731px\" \/><\/figure>\n\n\n\n<p> there are multiple ways you can use to fix this issue. One of the solutions is using the expression <em><strong>Replace<\/strong><\/em> in your flow to replace the HTML code seek the example below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"1024\" height=\"556\" src=\"https:\/\/www.toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-27-1024x556.png\" alt=\"\" class=\"wp-image-1960\" srcset=\"https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-27-1024x556.png 1024w, https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-27-300x163.png 300w, https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-27-768x417.png 768w, https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-27-350x190.png 350w, https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-27.png 1109w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>the expression used in this example is: replace(replace(replace(body(&#8216;Create_HTML_table_for_related_Items&#8217;), &#8216;&amp;lt;&#8217; , &#8216;&lt;&#8216; ), &#8216;&amp;gt;&#8217;, &#8216;&gt;&#8217;), &#8216;&amp;quot;&#8217;, &#8216; &#8221; &#8216;)<\/p>\n\n\n\n<p>after that add the output of your expression inside the CSS compose<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"702\" height=\"538\" src=\"https:\/\/www.toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-28.png\" alt=\"\" class=\"wp-image-1961\" srcset=\"https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-28.png 702w, https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-28-300x230.png 300w, https:\/\/toponecrm.com\/blog\/wp-content\/uploads\/2022\/03\/image-28-350x268.png 350w\" sizes=\"(max-width: 702px) 100vw, 702px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>When you create a work flow and face a problem with the output is displaying HTML code like the image below: there are multiple ways you can use to fix this issue. One of the solutions is using the expression Replace in your flow to replace the HTML code seek the example below: the expression &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/toponecrm.com\/blog\/dynamics-365\/how-to-remove-html-tags-when-sending-an-automated-email-and-display-contents-properly-power-automate\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to replace HTML tags when within automated email and display content properly ? &#8211; Power Automate)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":[],"_tribe_ticket_has_attendee_info_fields":false},"categories":[9],"tags":[27],"ticketed":false,"_links":{"self":[{"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/posts\/1916"}],"collection":[{"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/comments?post=1916"}],"version-history":[{"count":5,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/posts\/1916\/revisions"}],"predecessor-version":[{"id":1966,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/posts\/1916\/revisions\/1966"}],"wp:attachment":[{"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/media?parent=1916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/categories?post=1916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/toponecrm.com\/blog\/wp-json\/wp\/v2\/tags?post=1916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}