▼  Site Navigation Main About Search Articles  ▼  Anime + Manga Anime Reviews Anime Characters Gallery Screenshots Manga Reviews  ▼  Misc News Links to Webcomics Bible Quotes Member Control Panel  ▼  Forum etc. Forums Older Musings Wordpress
site version 7.3
older
newer

2/4/10
Wednesday 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, commercial 1, computer 5, games 21, hard to remember 1, memo blog 1, moving 2, news 11, none 1555, opera 68, quotes 1, reformat hard drive 19, sgopc 1, site update 5, site version 205, star wars 2, swtor 1, video 1, website 8, wishlist 3

copyright 2005–2019