Profile
Achievement
adamcoulombe's Recent SnippetsTagged html
- All /
« Prev 1 Next »
This example uses file_get_contents to retrieve remote HTML. From there, we can parse through it using PHP5's DOMDocument and DOMXpath. XPath Queries are easy to create using the Firefox extension "XPather"
3
1878
posted 15 years ago by adamcoulombe
This is handy for cleaning up your HTML to use more plain text and fewer img tags. Whether this is SEO friendly or not is subjective. I tend to think it's fine as long as you don't use it for spam. Digg implements a similar method for their main logo...
1
1063
posted 15 years ago by adamcoulombe