Friday, February 25, 2011

Converting html character to actual character

Source : http://webglimpse.net/docs/howto_uml.html

#!/usr/local/bin/perl


# converts html files into ascii by just stripping anything between
# < and >
# written 4/21/96 by Michael Smith for WebGlimpse
#
# Added code to replace html codes for special chars with the
# characters themselves. 12/19/98 --GB
#
# Also add space in place of space-producing HTML tags
# 12/22/98 --GB

$carry=0;

while(){
$line = $_;

if($carry==1){
# remove all until the first >
next if($line!~s/[^>]*>//);
# if we didn't do next, it succeeded -- reset carry
$carry=0;
}

while($line=~s/(<[^\s>][^>]*>)/&addspace($1)/ge){};
if($line=~s/<[^\s>].*$//){
$carry=1;
}

$line = &fixspecial($line);
print $line;
}


sub addspace () {

$_ = shift;

# Check for tags that should NOT return a space
/(<\/?b>)|(<\/?i>)|(<\/?em>)|(<\/?font)|(<\/?strong)|(<\/?big)/i && return '';
/(<\/?sup)|(<\/?sub)|(<\/?u>)|(<\/?strike)|(<\/?style)/i && return '';

# Otherwise, put in a space
return ' ';

}


sub fixspecial () {

$_ = shift;

s/\ / /g;
s/\ / /g;
s/\¡/¡/g;
s/\¡/¡/g;
s/\¢/¢/g;
s/\¢/¢/g;
s/\£/£/g;
s/\£/£/g;
s/\¤/¤/g;
s/\¤/¤/g;
s/\¥/¥/g;
s/\¥/¥/g;
s/\¦/¦/g;
s/\¦/¦/g;
s/\§/§/g;
s/\§/§/g;
s/\¨/¨/g;
s/\¨/¨/g;
s/\©/©/g;
s/\©/©/g;
s/\ª/ª/g;
s/\ª/ª/g;
s/\«/«/g;
s/\«/«/g;
s/\¬/¬/g;
s/\¬/¬/g;
s/\­/\\/g;
s/\­/\\/g;
s/\®/®/g;
s/\®/®/g;
s/\¯/¯/g;
s/\¯/¯/g;
s/\°/°/g;
s/\°/°/g;
s/\±/±/g;
s/\±/±/g;
s/\²/²/g;
s/\²/²/g;
s/\³/³/g;
s/\³/³/g;
s/\´/´/g;
s/\´/´/g;
s/\µ/µ/g;
s/\µ/µ/g;
s/\¶/¶/g;
s/\¶/¶/g;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/ß/g;
s/\ß/ß/g;
s/\à/à/g;
s/\à/à/g;
s/\á/á/g;
s/\á/á/g;
s/\â/â/g;
s/\â/â/g;
s/\ã/ã/g;
s/\ã/ã/g;
s/\ä/ä/g;
s/\ä/ä/g;
s/\å/å/g;
s/\å/å/g;
s/\æ/æ/g;
s/\æ/æ/g;
s/\ç/ç/g;
s/\ç/ç/g;
s/\è/è/g;
s/\è/è/g;
s/\é/é/g;
s/\é/é/g;
s/\ê/ê/g;
s/\ê/ê/g;
s/\ë/ë/g;
s/\ë/ë/g;
s/\ì/ì/g;
s/\ì/ì/g;
s/\í/í/g;
s/\í/í/g;
s/\î/î/g;
s/\î/î/g;
s/\ï/ï/g;
s/\ï/ï/g;
s/\ð/ð/g;
s/\&ieth;/ð/g;
s/\ñ/ñ/g;
s/\ñ/ñ/g;
s/\ò/ò/g;
s/\ò/ò/g;
s/\ó/ó/g;
s/\ó/ó/g;
s/\ô/ô/g;
s/\ô/ô/g;
s/\õ/õ/g;
s/\õ/õ/g;
s/\ö/ö/g;
s/\ö/ö/g;
s/\÷/÷/g;
s/\÷/÷/g;
s/\ø/ø/g;
s/\ø/ø/g;
s/\ù/ù/g;
s/\ù/ù/g;
s/\ú/ú/g;
s/\ú/ú/g;
s/\û/û/g;
s/\û/û/g;
s/\ü/ü/g;
s/\ü/ü/g;
s/\ý/ý/g;
s/\ý/ý/g;
s/\þ/þ/g;
s/\þ/þ/g;
s/\ÿ/ÿ/g;
s/\ÿ/ÿ/g;
s/\"/"/g;
s/\"/"/g;

# Do the ampersand last, so it won't affect the other substitutions
s/\&/\&/g;
s/\&/\&/g;

return $_;
}

11 comments:

Nitesh singh said...

Great Blog!!.
If Any on Looking For Independent House for sale in Shimla Please Visit India Property Clinic
Independent Flat for sale in Shimla

eyosingh said...

Are you looking printer not activated error code 30 Servic then you can contact our websites.
printer not activated error code 30

Unknown said...

This post was actually quite accommodating and useful, it helped me get some new thoughts. A debt of gratitude is in order for sharing this blog, I continue visiting your site since I have some helpful substance thoughts from here posted online journals. Visit mistake code oxcoooooof windows 10
install error 0x80248007

worldtechlife | 1-844-872-5597 said...

Account Live can be appropriately said as a solitary spot to get to Office Online, Outlook, OneDrive, Edge, and different items and administrations. You can see and deal with any of these negligible by signing in to your record with your enlisted ID and Account Live password. While doing as such, in the event that you see a mistake saying “Incorrect username or password” (the most widely recognized issue), at that point perform Account Live password reset process by adhering to the stepwise directions gave in this article.
In any case, in the event that you are awful at recollecting new passwords, at that point check these focuses to ensure that it's definitely not you who has forgotten the password, there is some other explanation behind it. Here, in this article, we are going to give you a portion of the things you can execute before starting Account Live com password Reset process.

worldtechlife | 1-844-872-5597 said...

In the event that you aren't sure what your Apple ID is, find it by entering the complete name and email address related with your Apple ID.* If you overlooked how to reset apple id password, we can assist you with discovering it or reset it. To deal with your Apple ID, including refreshing believed telephone numbers and gadgets or changing an installment technique, utilize the Settings application on your iPhone, iPad, or iPod contact, System Preferences on your Mac, or apple itunes login my account.
create new apple id | apple customer support number

Call Toll Free No-1-877-814-4455

alaa omran said...

شركة نقل عفش بالمدينة المنورة
شركة نقل عفش بالمدينة المنورة
شركة نقل عفش
ارخص شركة نقل عفش بالمدينة المنورة
شركة نقل عفش بالقصيم
شركة نقل عفش بخميس مشيط
شركة نقل عفش بابها
شركة نقل عفش بتبوك

Smartbox said...

Smartbox’s electronic self-service Package locker for apartments offer an easy and secure way to manage parcel deliveries for residents.

worldtechlife | 1-844-872-5597 said...

mcafee.com/activate - McAfee security programming offers a standout amongst other malware assurance among the various security suites in the worldwide market. As indicated by the most recent reports, there has been critical development in digital assaults in the course of recent years. Digital wrongdoing has gotten composed, and programmers have gotten increasingly advanced. Presently every gadget, for example, cell phones, PC, PCs, tablets, and even smartwatches are powerless against digital assaults. Consistently new dangers develop and unleash ruin. Ransomware assaults are on the ascent, making information security significant. Thusly, you should get the hearty insurance offered by McAfee by visiting mcafee.com/activate product key.
Mcafee Activation | mcafee.com/myaccount

worldtechlife | 1-844-872-5597 said...

McAfee antivirus is a program which has been planned by Intel Security to ensure gadgets against malware and infections. It offers security for a scope of gadgets running Windows, Mac, iOS, and Android from dangers, for example, APT, spyware, malware, adware, Trojan ponies, botnets, rootkits, and so on. www.mcafee.com/activate programming distinguishes dangers in the framework and evacuates them. It additionally obstructs any approaching dangers by successfully distinguishing them. McAfee antivirus makes some genuine memories filtering highlight which ensures that all the stuff and procedures get checked out of sight at whatever point the gadget is running. Since McAfee is lightweight, introducing and setting it up on gadgets is simple.

Read More :: McAfee Activate| mcafee installation



http://start-mcafeeactivate.over-blog.com/mcafee.com/activate-download-install-activate-mcafee.html

worldtechlife | 1-844-872-5597 said...

1. Type Settings in the Windows Search box, at that point select Settings from the indexed lists.
2. Under Windows Settings, select Apps.
3. Type McAfee in the inquiry box and select the McAfee item you might want to evacuate.
4. Select Uninstall.
5. Select Uninstall again to affirm that you would like to expel the product.
6. When Windows uninstalls the product, you would then be able to close the Settings window.
7. Restart your PC and ensure the program was uninstalled.

Click Here >>>> How to uninstall mcafee

worldtechlife | 1-844-872-5597 said...

At Norton.com/setup you'll Norton setup enter product key to download Norton Antivirus. it'll Activate your Norton Antivirus Subscription or Renew your Norton antivirus Product. While Purchasing Online you get 25 digit Norton Setup Product key on Mail or If purchased it Retail Card, then its at back side of CD look as -X5XXX-X5XXX-XX5XX-XXXX5-5XXXX

How to Install Norton with product key?

In Online Methos you've got downloaded Norton antivirus, Click on file it'll automatically install on your device

From Retail card, follow below steps

Insert Norton Antivirus CD
Double Click on the icon of Norton
Wizard will open and you would like to Enter Norton Setup Product Key, enter it and click on submit
Follow onscreen instruction to finish the installation process


Click Here >>>> Norton download install