Can you recommend any ready for use PHP scripts that replace certain strings with their html equivalents?
123814
I'm interested in selectively parsing Mediawiki XML markup to generate a customized HTML page that's some subset of the HTML produced by the actual PHP Mediawiki render engine.  I want it for BzReader, an offline Mediawiki compressed dump reader written in C#.  So a C# parser would be ideal, but any good code would help.  Of course, if no one has done it before, I guess it's time to start a project maintaining a free and separate Mediawiki parser, based on Mediawiki's own parser, but less tightly integrated with Mediawiki itself.  So, does anyone know of any base I could begin with, that would be better than hacking from the Mediawiki PHP code?
19928
How can I exit the JavaScript script much like PHP's exit or die? I know it's not the best programming practice but I need to.
7038
Here's the information :     There are four different pairs of   opening and closing tags which can be   used in PHP. Two of those, &lt;?php ?&gt;   and &lt;script language="php"&gt; &lt;/script&gt;,   are always available. The other two   are short tags and ASP style tags, and   can be turned on and off from the   php.ini configuration file. As such,   while some people find short tags and   ASP style tags convenient, they are   less portable, and generally not   recommended.   In my experience most servers do have short tags enabled. Typing  &lt;?=   is far more convenient than typing  &lt;?php echo    The programmers convenience is an important factor, so why are they not recommended?
98050
As part of a project for school, I need to replace a string from the form:  5 * x^3 - 6 * x^1 + 1   to something like:  5x&lt;sup&gt;3&lt;/sup&gt; - 6x&lt;sup&gt;1&lt;/sup&gt; + 1   I believe this can be done with regular expressions, but I don't know how to do it yet.  Can you lend me a hand?   P.S. The actual assignment is to implement a Polynomial Processing Java application, and I'm using this to pass polynomial.toString() from the model to the view, and I want do display it using html tags in a pretty way.
40827
I use the grep command to search for a string in many files. Is there something similar to "search and replace"?
511
How can I change the class of an HTML element in response to an onclick or any other events using JavaScript?
3752
I have PHP configured so that magic quotes are on and register globals are off.  I do my best to always call htmlentities() for anything I am outputing that is derived from user input.  I also occasionally seach my database for common things used in xss attached such as...  &lt;script   What else should I be doing and how can I make sure that the things I am trying to do are always done.
91923
Recently, I look for scripts to take this:  This; Is; First; Line;   and make it like:  This Is First Line
15365
In Perl, what is a good way to perform a replacement on a string using a regular expression and store the value in a different variable, without changing the original?  I usually just copy the string to a new variable then bind it to the s/// regex that does the replacement on the new string, but I was wondering if there is a better way to do this?  $newstring = $oldstring; $newstring =~ s/foo/bar/g;
120451
I need to be able to modify every single link in an HTML document. I know that I need to use the SoupStrainer but I'm not 100% positive on how to implement it. If someone could direct me to a good resource or provide a code example, it'd be very much appreciated.  Thanks.
121153
Example:  &lt;svg&gt;&lt;text&gt;Hello World&lt;/text&gt;&lt;/svg&gt;?
10527
In PHP you can just use $_POST for POST and $_GET for GET (Query string) variables. What's the equivalent in Python?
16227
Does the Google spider knows how to render JavaScript, or only HTML?
119553
Is there a MediaWiki-like method for supporting concurrent editing of text bodies in Drupal 7?  If no feature currently exists, what are some decent PHP diff libraries that could be wrapped up by a Drupal module that could do the job?
836
I'm writing a php program that pulls from a database source. Some of the varchars have quotes that are displaying as black diamonds with a question mark in them (�, , I assume from Microsoft Word text).  How can I use php to strip these characters out?
27341
Is there an easy way of getting the charset and collation of the DB tables in WordPress without resorting to SQL queries?
121834
How are callbacks written in PHP?