Some motivation Django has a field called ChoiceField which lets you very easily create a <select> dropdown in your forms. A great feature is the ability to transform nested choices into appropriate <optgroup> groups. For instance, the following code: …creates a field that when rendered looks something like this: The HTML that Django produced looks […]
Category Archives: HTML
Parsing HTML with C++: Revisited
About a year ago I published an article entitled Parsing HTML with C++. It is by far my most popular article (second most popular being this one), and is a top result on Google for queries such as “html c++ parsing”. Nevertheless there is always room for improvement. Today, I present a revisit of the […]
Parsing HTML with C++
I was having a hard time finding an HTML parser for my latest C++ project, so I decided to write up a quick summary of what I ended up using. Revisited! Please see the new article here. My #1 requirement for a parser was that it had to provide some mechanism of searching for elements. […]
Using css2xpath to inline CSS stylesheets
I was looking through my referrer stats the other day and found a neat use of my port of css2xpath: http://chrispebble.com/inlining-a-css-stylesheet-with-c/. The author uses css2xpath to aid in inlining CSS stylesheets. Here is an excerpt of the project (I trimmed the first two paragraphs): This week I worked on adding confirmation emails to our quiz system and […]
Textarea Line Count: jQuery Plugin
Project Moved This project has moved to BitBucket: https://bitbucket.org/MostThingsWeb/textarea-line-count