<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 02:43:10 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Thomas Weinert's Blog: Highlight Words In HTML]]></title>
      <guid>http://www.phpdeveloper.org/news/14486</guid>
      <link>http://www.phpdeveloper.org/news/14486</link>
      <description><![CDATA[<p>
In the latest post to his blog <i>Thomas Weinert</i> takes a look at a simple challenge someone asked him about - highlighting a section of HTML based on a search string - and <a href="http://www.a-basketful-of-papayas.net/2010/05/highlight-words-in-html.html">his solution</a>.
</p>
<blockquote>
The challenge is to wrap given words in text content with a span and add a class to the span depending on the word. Do not touch elements, attributes, comments or processing instructions. Do it case insensitive and do it the safe way.
</blockquote>
<p>
He uses the <a href="svn://svn.fluentdom.org">FluentDOM</a> tool to get the job done. It allows him to create an XPath expression to single out the item to be highlighted (in this case a single or series of words) and wrap them in a matching span tag with the correct styles attached.
</p>]]></description>
      <pubDate>Mon, 10 May 2010 10:34:24 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Thomas Weinert's Blog: FluentDOM]]></title>
      <guid>http://www.phpdeveloper.org/news/12673</guid>
      <link>http://www.phpdeveloper.org/news/12673</link>
      <description><![CDATA[<p>
<i>Thomas Weinert</i> has <a href="http://www.a-basketful-of-papayas.net/2009/06/fluentdom.html">posted about</a> a new tool he's worked up to make working with the DOM in PHP a bit more fluent - FluentDOM.
</p>
<blockquote>
Today I like to present a new projekt: FluentDOM. It provides an easy to use, <a href="http://www.jquery.com/">jQuery</a> like, fluent interface for DOMDocument. The idea was born in a workshop of <a href="http://www.schlitt.info/">Tobias Schlitt</a> about the PHP XML extensions at the IPC Spring in Berlin.
</blockquote>
<p>
He includes a basic code example - locating items with an ID of "first" and removing that ID to replace it with a class. If you'd like to check it out (literally) you can grab the latest version from <a href="svn://bastian-feder.de/trunk/FluentDOM">the project's public svn</a>.
</p>]]></description>
      <pubDate>Fri, 12 Jun 2009 07:59:13 -0500</pubDate>
    </item>
  </channel>
</rss>
