HTML tags shown in Facebook post from Wordpress

Dears,

When I try to post on Facebook using WordPress and N8N workflow. the post include HTML tags … how to remove this tags.

Facebook sample post:
<p class="text-align-justify"><strong>Content(</strong><strong>CNN</strong><strong></strong><strong>)

thanks

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

to remove this tags I found the solution by using HTML node – Extract content option.

the problem now: the value of the message return" undefined"
the facebook node include two inputs (one for binary = image, other for message = text from HTML) why this message returned.

Hi @AhmedAlnaqa How are you fecthing the content from WordPress? API? RSS Feed?

Can you post your full workflow here? Or maybe a screenshot?

sure will create a separate post with the how to. and will mentioned you on it

1 Like

No, Feel free to reply here.

Or You could just use .removeTags() with any expression you have, like {{ $json.TextContectExtracted.removeTags() }} and it will delete all HTML tags without node.

2 Likes

Sure, you have to add a webhook in N8N and from wordpress side add plugin called WP webhook to listen for what ever u need. check it and inform me in case of any question

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.