▼  Site Navigation Main Articles Search  ▼  Anime + Manga Anime Reviews Anime Characters Gallery Screenshots Manga Reviews  ▼  Misc News 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
anime 1, article 1, commercial 1, computer 5, games 22, hard to remember 1, keyboard shortcuts 1, links 1, memo blog 1, mini-review 5, moving 2, mysql 1, news 11, none 1635, opera 68, private 4, quotes 1, reformat hard drive 19, sgopc 1, site update 11, site version 205, star wars 2, swtor 1, video 1, website 9, wishlist 3

copyright 2005–2020