mckamey / htmldistiller.net Goto Github PK
View Code? Open in Web Editor NEWHtmlDistiller: HTML parser and filter library for .NET
HtmlDistiller: HTML parser and filter library for .NET
Repro:
1. Parse markup with some literal text which contains long strings of
unicode text, e.g.
"<p>АмериканскаяфирмаПерсонaльныйспутник</p>"
2. Specify that non-ASCII chars should be encoded.
3. Attempt to force word wrapping the text at a length shorter than the
literal string.
Actual result:
- The literal length resets when it encounters HTML entites (e.g. treats
them similarly to tags).
Expected result:
- The literal chars should be interpreted the same as non-encoded/ASCII
chars. (i.e. they should count toward the literal string length).
Original issue reported on code.google.com by mckamey
on 14 Jul 2009 at 6:30
When putting less-than symbols inside <script> blocks, if it looks like a tag
it may start
to be parsed as a tag.
What steps will reproduce the problem?
1. parse the following: "<script>generics like 'new List<string>()' look like a
tag to the
parser.</script>"
2. notice during the parsing looks like a <string> tag has been parsed
What is the expected output?
- you would expect that <script> and <style> tags are treated as CDATA blocks
and the
contents would not be further parsed
What do you see instead?
- instead you will notice that an inner tag has been parsed and the rest of the
flow of the
content will adjust accordingly (respecting tag-balancing options, etc.)
Workarounds:
- place a space between the less-than character '<' and the starting word
- encode the less-than character as '<'
Original issue reported on code.google.com by mckamey
on 19 Sep 2009 at 12:49
Repro:
1. Parse markup with some literal text which contains long strings of
unicode text, e.g.
"<p>АмериканскаяфирмаПерсонaльныйспутник</p>"
2. Specify that non-ASCII chars should be encoded.
3. Attempt to force word wrapping the text at a length shorter than the
literal string.
Actual result:
- The literal length resets when it encounters HTML entites (e.g. treats
them similarly to tags).
Expected result:
- The literal chars should be interpreted the same as non-encoded/ASCII
chars. (i.e. they should count toward the literal string length).
Original issue reported on code.google.com by mckamey
on 14 Jul 2009 at 6:30
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.