Wikipedia
in package
Utility functions related to Wikipedia.
Based on wikiproxy.php v0.5 04-10-2004 stefan (wholivesat) whitelabel.org scripts/wikipedia-update updates the database of titles each week.
The bits of code I didn't borrow from elsewhere (and I've credited where) is licenced under the GPL. Do with it what you will, but this is my first php and my first code for 7 years, so I'd appreciate feedback and suggestions via comments on my blog: http://www.whitelabel.org/archives/002248.html (especially regex optimisations for lines 64 and 65 - ideally a way of making it NOT match if we're within an IMG tag, because then I could drop the antiTaginTag stuff)
Table of Contents
Methods
- antiTagInTag() : mixed
- Anti Tag-In-Tag
- wikipedize() : mixed
Methods
antiTagInTag()
Anti Tag-In-Tag
public
static antiTagInTag([mixed $content = '' ][, mixed $format = 'htmlhead' ]) : mixed
Credit: isaac schlueter (lifted from http://uk2.php.net/strip-tags)
Parameters
- $content : mixed = ''
- $format : mixed = 'htmlhead'
Tags
wikipedize()
public
static wikipedize(mixed $source) : mixed
Parameters
- $source : mixed