-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL of img tag is included in the p-name and content.value #53
Comments
aaronpk
changed the title
URL of img tag is included in the p-name
URL of img tag is included in the p-name and content.value
Jan 12, 2018
Here is the XRay version of this page: {
"type": "entry",
"photo": [
"http://target.example.com/photo.jpg"
],
"content": {
"text": "This is a photo post with an img tag inside the content. http://target.example.com/photo.jpg",
"html": "This is a photo post with an <code>img</code> tag inside the content."
}
} |
I have successfully handled this case, thanks to @tantek's suggestion of running the {
"type": "entry",
"photo": [
"http://target.example.com/photo.jpg"
],
"content": {
"text": "This is a photo post with an img tag inside the content.",
"html": "This is a photo post with an <code>img</code> tag inside the content."
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue is part of #52.
The URL of img tags is included in the parsed
name
value as well as thecontent.value
. This means XRay is able to detect that the name and content are a duplicate, so it correctly identifies this as a note, but then it has no way to remove the img URL from the text content.HTML
mf2 json
https://pin13.net/mf2/?id=20180112183559529
Assuming microformats/microformats2-parsing#16 is resolved, this case would still fail. Should URLs also not be included in plaintext values?
The text was updated successfully, but these errors were encountered: