PluginProbe
FeedWordPress / 2009.1111
FeedWordPress v2009.1111
trunk 0.8 0.9 0.91 0.95 0.96 0.97 0.98 0.981 0.99 0.991 0.992 0.993 2008.1030 2008.1101 2008.1105 2008.1214 2009.0612 2009.0613 2009.0618 2009.0707 2009.1111 2009.1112 2010.0127 2010.0528 All 65 releases
feedwordpress / feedwordpresshtml.class.php

feedwordpresshtml.class.php in FeedWordPress 2009.1111, at feedwordpresshtml.class.php

36 lines 798 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 class FeedWordPressHTML {
3 function attributeRegex ($tag, $attr) {
4 return ":(
5 (<($tag)\s+[^>]*)
6 ($attr)=
7 )
8 (
9 \s*(\"|')
10 (((?!\\6).)*)
11 \\6([^>]*>)
12 |
13 \s*(((?!/>)[^\s>])*)
14 ([^>]*>)
15 )
16 :ix";
17 } /* function FeedWordPressHTML::attributeRegex () */
18
19 function attributeMatch ($matches) {
20 $suffix = (isset($matches[12]) ? $matches[12] : $matches[9]);
21 $value = (isset($matches[10]) ? $matches[10] : $matches[7]);
22
23 return array(
24 "tag" => $matches[3],
25 "attribute" => $matches[4],
26 "value" => $value,
27 "quote" => $matches[6],
28 "prefix" => $matches[1].$matches[6],
29 "suffix" => $matches[6].$suffix,
30 "before_attribute" => $matches[2],
31 "after_attribute" => $suffix,
32 );
33 } /* function FeedWordPressHTML::attributeMatch () */
34 } /* class FeedWordPressHTML */
35
36