4 ms·
> But it gets more interesting if the lyrics are stored as an HTML fragment. Is there any reason to store the HTML version with <p>s and <br>s instead of a pla
by slig 13y ago
> But it gets more interesting if the lyrics are stored as an HTML fragment.
Is there any reason to store the HTML version with <p>s and <br>s instead of a plain text and converting it to HTML with simple rules à la markdown? (single line break = <br>, double line break = <p>)
- aliakbarkhan 13y agoWell, at a minimum, it saves the processing time required to format the text, which lessens the server cost of each page hit. It's a small optimization, but when the vast majority of the users are just coming to the site to read text, I'd imagine it would save a lot of CPU time.
- maaaats 13y agoAt least for me it was interesting when considering the aspect of finding/modifying stuff in data you cannot control yourself. For instance crawling, indexing or retrieving data in an unspecified format.
- slig 13y agoYes, I enjoyed the article as well. My question was why they stored the HTML in the first place.
- allworknoplay 13y agoyeah, this is super surprising considering their business of annotating individual lines; I'd be storing the lines in a list and caching generated html, not storing the tags in with them. it's kind of weird.