You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the original HTML uses p-content that contains a u-photo inside, the mf2 parser strips out the HTML completely, returning a plaintext string for content that doesn't contain an img tag at all. XRay has no way to remove the image from the content.
HTML
<html><head><title>Test</title></head><bodyclass="h-entry"><pclass="p-content p-name">This is a photo post with an <code>img</code> tag inside the content. <imgclass="u-photo" src="http://target.example.com/photo.jpg"></p></body></html>
mf2 json
{
"type": [
"h-entry"
],
"properties": {
"content": [
"This is a photo post with an img tag inside the content. http://target.example.com/photo.jpg"
],
"name": [
"This is a photo post with an img tag inside the content. http://target.example.com/photo.jpg"
],
"photo": [
"http://target.example.com/photo.jpg"
]
}
}
Part of #52.
When the original HTML uses
p-content
that contains au-photo
inside, the mf2 parser strips out the HTML completely, returning a plaintext string forcontent
that doesn't contain animg
tag at all. XRay has no way to remove the image from the content.HTML
mf2 json
https://pin13.net/mf2/?id=20180112195016745
The text was updated successfully, but these errors were encountered: