Aaron Parecki
aacac198a8
fix checking for empty post content
XRay now looks for images inside the HTML and does not consider those empty posts
4 years ago
Aaron Parecki
9163341af2
normalize relative URLs in JSONFeed items
closes #77
6 years ago
Aaron Parecki
a50cd6284b
fix whitespace handling for br tags in html
6 years ago
Aaron Parecki
fe65def90f
comment out two tests until open mf2 parser issues are resolved
7 years ago
Aaron Parecki
2fd563db0c
put the comment in the right spot
7 years ago
Aaron Parecki
4d65b1ca1e
if removing the img results in empty content, put the name value back
closes #57
7 years ago
Aaron Parecki
3ac38f9dbf
add simple case of Known markup
for #57
7 years ago
Aaron Parecki
85c2b9b15f
add failing test for `p-content` containing an `u-photo`
7 years ago
Aaron Parecki
66adfbe2f8
run name/content dedupe before munging HTML
fix for #53
7 years ago
Aaron Parecki
bdedef6e1e
adds a bunch of broken tests for #52
7 years ago
Aaron Parecki
a8acfd2a43
fix test for img in sanitize test
7 years ago
Aaron Parecki
35669270e3
reorganize XRay classes, use p3k-http lib
* removes the HTTP classes from this project and uses p3k-http library instead
* reorganizes the XRay classes into a psr-4 compatible folder
* moves controller autoload into -dev in preparation for turning this into a library (#17 )
7 years ago
Aaron Parecki
1f6de10aba
add tests for validating URL fields
* fields that should be URLs will now be omitted if the value was not a URL, such as when the value is `javascript:alert()`
* makes Mf2 class slightly more self-contained by duplicating the URL helper functions into it
* fixes tests to not cache responses in memcache
8 years ago
Aaron Parecki
a202aa9c9a
tests for sanitizing and escaping HTML
use fork of php-mf2 until https://github.com/indieweb/php-mf2/pull/83 is merged
8 years ago
Aaron Parecki
d7672df96c
allow ul/li/ol
8 years ago
Aaron Parecki
e3ff109b37
restrict matching mf2 classes to only lowercase names
see http://microformats.org/wiki/microformats2-parsing-issues#ignore_u-camelCase_properties for background
8 years ago
Aaron Parecki
66a9b1cc9e
sanitize HTML in the entry
allow only a basic set of tags, and remove any non-mf2 classes
closes #2
8 years ago
Aaron Parecki
241594dcf5
sanitize HTML
sanitize the HTML returned in the content property. allows a common set of HTML tags.
for #2
8 years ago