Go parsers for web formats
MIT License
Bot releases are visible (Hide)
Published by tdewolff almost 5 years ago
amp-boilerplate
hash for HTMLNewError
now has fmt-style function signaturePublished by tdewolff almost 5 years ago
CSS: add Invert
and Solid
hashes
Published by tdewolff almost 5 years ago
Text() []byte
returns nil
for start tag closersText() []byte
returns textual content for TextToken
, CommentToken
, ...Offset() int
for all lexers and parsers that returns the current character offset in the input stream\
now properly handled as DelimToken
and not EscapeToken
in some casesPublished by tdewolff almost 5 years ago
Bugfix: bad URL encoding resulted in no decoding at all, the new EncodeURL
and DecodeURL
are faster and never fail
Bugfix: get correct Position
if it is in the middle of a unicode codepoint
Published by tdewolff almost 5 years ago
0xC0
usually followed by more bytes).Published by tdewolff almost 5 years ago
ReplaceMultipleWhitespace
by 20%--25%ReplaceEntities
and ReplaceMultipleWhitespaceAndEntities
to replace QuoteEntity
. These allow to do replacements such as: " => "
, " => "
, " => "
, ’ => ’
, ' => '
.Published by tdewolff almost 5 years ago
Revert v2.3.11 and readd html.Keygen
hash.
Published by tdewolff almost 5 years ago
Add ReplaceEntities
and remove entity replacement from EscapeAttrVal
Published by tdewolff almost 5 years ago
Add and remove hashes for CSS and HTML
Published by tdewolff about 5 years ago
CSS: keep whitespace in unknown at rules
Published by tdewolff over 5 years ago
}
in CSS inlinePublished by tdewolff over 5 years ago
Bytes()
on empty bufferEqualFold
only match upper/lower case on alphabet charactersEscapeAttrVal
to handle attribute values for XML (use double quotes)Published by tdewolff almost 6 years ago
*color: white
Published by tdewolff almost 6 years ago
Add Go modules support by using the github.com/tdewolff/parse/v2
import path.
Published by tdewolff over 6 years ago
Published by tdewolff almost 7 years ago
This fixes a couple of bugs in the HTML, XML and JS implementations that caused out-of-bounds panics. The HTML parser now allows NULL bytes to be in the source.
Published by tdewolff almost 7 years ago
Published by tdewolff almost 7 years ago
Published by tdewolff almost 7 years ago
This v2.2 release is synchronous with tdewolff/minify v2.2
Changelog:
Thanks to @RReverser for improvements on the JS parser.