▼  Site Navigation Main Articles News Search  ▼  Anime + Manga Anime Reviews Anime Characters Gallery Screenshots Manga Reviews  ▼  Misc Links to Webcomics Bible Quotes About Older Musings
site version 7.3
older
newer

2/4/10
Thursday 5:31am


Date Posted:
2/4/10

I updated the text formatting script I use to replace "-" with "".  I am not going to update the site version for this even though it was a bit tricky to work out, because it is not a bug fix and not a new feature; just a preference.  I used
$text=preg_replace('/>.*?</e',"str_replace('-','&ndash;','$0')",$text);
In short, it replaces "-" with "" unless it is part of a scipt, javascript, link, CSS, or img src.

In case you are wondering how I am able to write out "-" at all, it is because I use the HTML code for "-" which is "&#45;".

archives


TAGS: none

All Memo Tags

allegory 1, anime 1, article 6, audio 2, bible 5, books 3, bug 22, code 1, commercial 1, computer 15, cooking 5, election 6, ereader 5, fixed 12, games 24, grok 4, habits 2, hard to remember 1, history 1, home improvement 40, keyboard shortcuts 1, links 3, memo blog 1, mini-review 14, moving 19, music 1, mysql 1, news 35, none 1890, opera 69, politics 11, private 17, quotes 1, reformat hard drive 19, sgopc 1, site update 15, site version 205, sleep 3, star wars 2, story 4, swtor 1, texas 1, vacation 5, video 7, website 26, windows 10 1, wishlist 3

copyright 2005–2025