Script Deletion Issue: HTML Tweet Code Removes JavaScript
-
Hello, good morning everyone. Thank you in advance for your help. I am a wrestling news writer at Superluchas.com, the number one Spanish-language website for wrestling news (WWE, AEW, etc.).
I have a problem: I want to embed a tweet in my article. I do this by copying the HTML code generated from the “Embed Tweet” feature on the Twitter Publish website. An example of the code is as follows:
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">The <a >@WWEUsos</a> are getting a head start for <a >#MITB</a> by taking down <a >@WWESoloSikoa</a> tonight on <a >#SmackDown</a>! ??<a >#TheBloodline</a> CIVIL WAR. ?? WEEK from TOMORROW. <br><br>The <a >@WWEUsos</a> vs. <a >@WWERomanReigns</a> and <a >@WWESoloSikoa</a>!<br><br>How will this war end? ?? <a >pic.twitter.com/KN7M1I3UBU</a></p>— WWE (@WWE) <a >June 24, 2023</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
I paste this code into the HTML Editor, not the Visual Editor in WordPress, and it is supposed to display the tweet correctly when I go back to the Visual editor, view the draft, or publish the article. However, the tweet is not visible, only the text appears as a quote, using the blockquote format.
I have identified that the problem occurs when I publish the article or save it as a draft. The following part of the HTML code is automatically removed: <script async src=”https://platform.twitter.com/widgets.js” charset=”utf-8″></script>
This is a problem that only affects me. Other contributors from Mexico, Spain, the United States, etc., can embed tweets in this way without any issues.
I would like to know why this problem is occurring. I created a completely new account, but the problem persists. However, I asked another colleague from Mexico to try embedding the tweet, and they were successful. Could this be a problem specific to Colombia? I am the only contributor from Colombia.
I have also tested this in all available browsers, but it doesn’t work. I don’t know what else to do. I have always had problems when embedding HTML code, for example, from Streamable.
Thank you very much, and I will be attentive to any solutions or comments. It’s worth mentioning that installing plugins or modifying the website’s code is not possible for various reasons, and because I am the only one experiencing this problem.
Original-HTML-Code.jpg
HTML-Code-without-Java-Script.jpg
HTML-Code-without-Java-Script-2.jpg
HTML-Code-without-Java-Script-3.jpg
- The topic ‘Script Deletion Issue: HTML Tweet Code Removes JavaScript’ is closed to new replies.