html5-php icon indicating copy to clipboard operation
html5-php copied to clipboard

An HTML5 parser and serializer for PHP.

Results 54 html5-php issues
Sort by recently updated
recently updated
newest added

Hello! I'm playing around with some PHP sanitization libraries and found the following issue in your HTML parser: The Scanner::peek() method attempts to read beyond the string's end in some...

Here's why: 1. `Masterminds\HTML5\Parser\CharacterReference::lookupDecimal()` uses `mb_decode_numericentity()` unconditionally. 2. Looking at `Masterminds\HTML5\Parser\UTF8Utils::convertToUTF8()` either iconv or mbstring must be available (if the input encoding is not 'auto'). This would allow to: 1....

What is event-based parser? And most importantly; is there any example for the event-based parser?

just a typo fix: rentrance -> reentrance

Hi I come here to ask a, maybe, dumb question. I used a WP plugin that uses this library to make changes to the html. This html contain inlined svg...

The current version 2.7.5 still returns svg as text node: ```html <svg id="logo-mobile"> <image href="logo-mobile.svg" width="100%" height="100%" /> </svg> ``` Source: ```html ``` Equal, if image with separate closing tag...

Hi there, thanks for your work with this package, im having some problems with it, but im parsing php files worse than that blade files and i need help starting...

Hi, thanks for the great project. I'm experimenting with parsing html strings. While I probably should use `loadHTMLFragment()` instead of `loadHTML()`, but I think this is still a bug. If...

Even if 1-2% slower it does not depend on system locale as ctype functions. Polyfills are even slower. Fixes #173

This library uses ctype_alpha() function in two places. 1. If I'm not wrong this function is locale dependent and I don't see any setlocale() calls. So, would be better to...