Web News


Spammers Start Island-Hopping
McAfee Inc. researchers have been tracking a trend whereby spammers use the top-level domain names of small islands as Web site links in spam campaigns to circumvent spam filters that traditionally catch more well-known domains. The practice was first discovered when McAfee researchers noticed a significant increase in the use of .st domains, the TLD for S?o Tom? and Principe. Some of the other small islands McAfee...

Germany to Keep Provision in Telecom Law That Irks EU
Germany plans to keep a clause in its draft telecommunications legislation that protects Deutsche Telekom AG, the country's former monopoly, risking a lawsuit from European Union antitrust regulators. The bill, which stemmed from Chancellor Angela Merkel's agreement with her coalition partners a year ago, affects whether Bonn-based Deutsche Telekom will be forced to open a 3 billion-euro ($3.9 billion) fiber-optic network...

Violent games blamed for German school attack
Leading German lawmakers demanded a crackdown on violent computer and simulated war games on Tuesday over concerns that they may have helped inspire a young man to attack his former school with guns and explosives. The masked 18-year-old man stormed the Scholl secondary school on Monday in the western German town of Emsdetten, wounding as many as 27 people before...

Germany slaps cap on fines for illegal music downloads
Berlin - Music company lawyers who impose huge fines for illegal music downloads are to face a cap of 50 euros (64 dollars) per case in Germany, the government in Berlin announced Friday. 'The limitation for the first warning letter from a lawyer ensures that we don't exaggerate in punishing copyright breaches,' said Justice Minister Brigitte Zypries.

Six companies apply for German Wimax license
Six companies have applied for a license to set up Wimax network technology, Germany’s federal network agency, Bundesnetzagentur, said Friday. Three have applied for a countrywide license while the other three are looking for regional licenses. Deutsche Telekom has decided not to seek a Wimax-license. The Bundesnetzagentur is currently auctioning licenses to utilize radio frequencies in the 3.4 gigahertz to 3.6 gigahertz bandwidth...

E-passport security? Depends on the country
Reports from the U.K. indicate that radio frequency identification chips in passports can be cracked. "Smart" passports from Germany and the Netherlands have been compromised as well, according to researchers. However, differences in chip implementation from nation to nation may mean that some passports are easier to crack...


11.30.06


Convert HTML Tags To Lower-case For XHTML Compliance

By Mads Kristensen

The XHTML definition demands all tags to be lower-cased.

Your page will not validate otherwise and will therefore not be valid XHTML. If you write all your XHTML by yourself, it shouldn't be an issue.

You simply write all tags in lower-case.

Now, imaging situations where you're not in control over the code being written.

One situation is when you let visitors/users of the website write HTML in a text box or even better, a rich text editor like FCKeditor or FreeTextBox. For some reason, no rich text editor I know of can write flawless XHTML in all situations, correct me if I'm wrong.

So, I wrote a little static helper method in C# that converts HTML tags to lower-case.



The Premier Event for Search Engine
Marketing & Optimization -
Register Now

If you also want to lower-case the HTML attributes, you can do it almost the same way as the HTML tags. I probably missed some attributes, but you can easily add them to the string array in the method below.



You can use this method when you save the input from a text box or you can use it when you render the page. Here's how you change the output of the ASP.NET page by overriding the Render method. You can remove the tags you don't need from the method to optimize the performance.



You can use this approach in conjunction with my whitespace removal method. It also uses the page's Render method.


About the Author:
Mads Kristensen currently works as a Senior Developer at Traceworks located in Copenhagen, Denmark. Mads graduated from Copenhagen Technical Academy with a multimedia degree in 2003, but has been a professional developer since 2000. His main focus is on ASP.NET but is responsible for Winforms, Windows- and web services in his daily work as well. A true .NET developer with great passion for the simple solution.

http://www.madskristensen.dk/

About DevWebProDE
DevWebProDE is for professional developers ... those who build and manage applications and sophisticated websites. DevWebProDE delivers via news and expert advice New Strategies In Development.

DevWebProDE is brought to you by:

SecurityConfig.comNetworkingFiles.com
NetworkNewz.comWebProASP.com
DatabaseProNews.comSQLProNews.com
ITcertificationNews.comSysAdminNews.com
LinuxProNews.comWirelessProNews.com
CProgrammingTrends.comNetworkNewz.com



-- DevWebProDE is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
 © 2006 iEntry Inc.  All Rights Reserved  Privacy Policy Legal    

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


New Strategies In Development DevWebProDE News Archives About Us Feedback DevWebProDE Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact