From the blog
Posted 2026-08-31
I recently was troubleshooting how to force the browser to hyphenate a PHP class name, and discovered something new.
The HTML entity ­ is a "soft hyphen"; it won't display unless the browser decides to introduce a line wrap at that point.
It's shy like that.
From the blog
Posted 2024-04-09
A common recommendation when using JavaScript is to put your <script> elements at the end of your HTML, including those that reference a JS file on your site.
One issue, however, is that if you then have a script that references a function from another script, how do you ensure the other script is loaded already?
Needed to do some testing that specific HTML tags and content were in a page, and wondered if there was something like
jq, but for HTML.There is, and it's aptly called
htmlq. It's a tool written in Rust, and it allows retrieving tags and content based on CSS selectors.