▼  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, books 3, bug 19, code 1, commercial 1, computer 15, election 2, ereader 5, fixed 11, games 24, hard to remember 1, history 1, keyboard shortcuts 1, links 3, memo blog 1, mini-review 10, moving 2, music 1, mysql 1, news 31, none 1841, opera 69, politics 9, private 15, 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, video 5, website 22, windows 10 1, wishlist 3

copyright 2005–2024