Pages

Your Ad Here

This Blog is not to read or go through

because, I have never been such a mess


Search the blog instead

Tuesday, May 11, 2010

PHP DOMElement innerHTML

Not seeing innerHTML or any similary function, variable for a DOMElement object in PHP might be frustrating to get the inner content.


Just a quick tip.

Use
DOMElement-Object->nodeValue;

Wednesday, May 5, 2010

Nested Quotes problem in HTML PHP

<?php

function sanitize_quotes($string){
    return htmlspecialchars($string, ENT_QUOTES);
}

$url = "Chateau d'Ouchy";
$surl = sanitize_quotes($url);
echo "<a title='<a href=\"{$surl}\" >{$surl}</a>'>Anchor Text</a>";
?>

Tags: PHP, HTML, Web, Internet, Tips and Tricks, Troubleshooting, Howto

Sunday, May 2, 2010

Understanding CSS Font Stacks

See the presentation on what CSS Font Stack is
http://www.maxdesign.com.au/articles/font-stacks/

And, this is the actual FontStack Builder on Web
http://www.codestyle.org/servlets/FontStack
Your Ad Here