0

The element type "img" must be terminated by the matching end-tag??

Hi.

Error fetching https://script.google.com/macros/s/AKfycbyMU1JlsATQ1ghYIWPRa-Yx7rWUjCkdZLbAMPY_3hLZE6tvdBw/exec?407256794415640576. Response: OK (200). Error: Invalid XML document. Root cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 2950; The element type "img" must be terminated by the matching end-tag "".

Does not recognize the feed. It is the feed that was created by using the script of Google. Twitter Archive.

http://pipes.yahoo.com/pipes/pipe.info?_id=09e9a574a7dfdb76c290cfc7dc95501b

by
5 Replies
  • I see you modified @labnol's script. However your feed is not valid.

    <title>sjhsjh0628: 꺄~~지연언니!!!고마워요ㅜㅜ요새 연우가 너무 그리워요ㅜㅎ보고싶사옵니다<img src="<https://abs.twimg.com/emoji/v1/72x72/2665.png>" draggable="false" alt="♥" aria-label="Emoji: Red heart suit"></title>

    <title> should not contain another tag, which is <img> in this case.

    0
  • I'm using the following code to erase incompatible things in .

    Replace this line

    rss += " <title>" + url.split("/")[3] + ": " + tweet.replace(/<a[^>]*>(.*?)<\/a>/gi, "") + "</title>";

    with

    rss += " <title>" + url.split("/")[3] + ": " + tweet.replace(/(&nbsp;|<\/?[^>]+>)/g, "").replace(/(&#39;)/g, "'") + "</title>";

    0
  • thanks. seems to have a problem because twitter emoji images.

    0
  • You can always use W3C's RSS validator to verify your feed. It's very helpful.

    0
  • Hello, it was not a validity problem (it rarely is), but you can see in the extract:

    <title>[stuff]<img src="<https://abs.twimg.com/emoji/v1/72x72/2665.png>" draggable="false" alt="♥" aria-label="Emoji: Red heart suit"></title>

    that the img mark up is not closed: ></title> should be /></title>.

    All in all, no problem using twitter emojis or google scripts, just be sure to not introduce mistakes using the second :)

    Best-

    0

Recent Posts

in Pipes