| Regina Spektor | March 8, 2007 |
Entertainment
Art & Literature
Science & Nature
Sports & Leisure
Geography
History
|
I swear I am going out tonight. There will be much drinking and much carousing. But I couldn't let my entities just languish on the floor unable to express themselves in blog. So I used the same replacement methodology to subsitute & for any & and then converted them back when it was time to display. And if the last line wasn't enough proof: I also added a button to the rss feed and worked around a strange Internet Exploder bug
After letting a few beta users experience my blogger, I realized that my 20 hours of work was not sufficient to support the kind of rich content that people ultimately want to be able to post. Most significantly, my users wanted to add markup into their pages and you guessed right, my blogger did not like that one bit. Not only that, but the rss feed that was being produced from the content was wrong the spec wants all html to be escaped by way of entities. But I didn't think spec at first, I just thought FIX. So I tried to figure out what my code was doing and realized that when I gathered the children strings of description, I was not printing the tags as tags. So I just printed them out. Good Idea but the problem was printing back out the XML tree, when items were untidy.Then I remebered the spec and decided to just escape the HTML and not worry about it. I didn't really want to spend all day in front of the computer anyway and the RSS feed would be mildy legal. But then I began to feel guilty Ok so in case you haven't noticed this yet I am showing off that free form html seems to be working. There are still anumber of issues to work out - most notibly the issue of tidy - but I will get there at some point. More important now to add an interface for adding/removing blog entries, especially since that test blog insulting brent was up for so long. Everybody who knows me - knows that brent is the coolest. ![]() |