Strip HTML Tags From a String





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

13
Date Submitted Thu. Sep. 14th, 2006 4:58 PM
Revision 1
Beginner ecliptic
Tags CSharp
Comments 0 comments
This snippet effectively reads an XML document using XPathDocument (read-only) instead of using the DOM. This snippet returns the full element values in between elements. For example:

root element
code element
This is a test.
/code element
/root element

GetXmlString("/root/code"); //returns 'This is a test.'
6
Date Submitted Tue. Sep. 12th, 2006 8:23 AM
Revision 1
Helper axsaxs
Tags binary | CSharp | File
Comments 1 comments
Write a set of bytes into a 'so-called' binary file. The point is that we use BinaryWriter here and we have a byte array as input.
2
Date Submitted Tue. Sep. 12th, 2006 8:00 AM
Revision 1
Beginner dogo
Tags File | String
Comments 0 comments
This function loads an File into an String.
4
Date Submitted Sat. Sep. 9th, 2006 9:22 PM
Revision 1
Helper jbplou
Tags String | VB.NET
Comments 2 comments
This function provides the reverse of a string. It is constructed using string builder because strings in .NET are immutable, while stringbuilders are not. Therefore large strings could be slow to reverse if a regular string was used for the working value that is returned.
6
Date Submitted Wed. Sep. 6th, 2006 9:22 PM
Revision 1
Helper jbplou
Tags Security | String | VB.NET
Comments 1 comments
This snippet generates a secure hash string using VB.NET
5
Date Submitted Tue. Sep. 5th, 2006 8:05 PM
Revision 1
Beginner MovingParts
Tags FileStream | StreamReader | String | String.Split | VB
Comments 0 comments
One of best and unknown built in string function included in .NET is String.Split(). It has come in quite handy for my in the last 2 years that I thought I'd share. Pretty basic example here...and for my first post, I thought I'd throw in a little File IO (for free of course)! This was written in .NET 2.0 and it will take little to no modification to make it work in 1.0/1.1.
21
Date Submitted Thu. Aug. 31st, 2006 1:36 PM
Revision 1
Helper dohpaz
Tags debug | HTML | PHP | Variable
Comments 0 comments
A quick and simple function to dump a variable (array, object, string, int, etc) out into -formatted output for a web browser.

If the variable is an array or an object, you can have it returned into the another variable for later processing (i.e., through templates or e-mail). Due to lack of free time, if the variable is not an array or an object, it will ignore the $return value and print directly to output.

Future revisions will add the above mentioned functionality.
12
Date Submitted Wed. Aug. 30th, 2006 5:06 AM
Revision 1
Helper dohpaz
Tags entities | HTML | PHP
Comments 2 comments
This function is useful in helping to deter spam bots by obfuscating things such as e-mail addresses and URLs that are displayed on a web page. While it's not 100% fool proof, it does offer some protection.

Example:
$email = html_entitize('foo@baz.org');
/*
Outputs foo@baz.com
*/
-9
Date Submitted Mon. Aug. 28th, 2006 9:43 AM
Revision 1
Helper axsaxs
Tags CSharp | filename | valid
Comments 2 comments
A function to determine if the input filename is valid on Win32 platforms (that is, it does not include invalid characters, such as :\?...)
-10
Date Submitted Mon. Aug. 28th, 2006 9:00 AM
Revision 1
Helper axsaxs
Tags binary | CSharp | File
Comments 1 comments
Write a set of bytes into a so-called binary file. The point is that we use BinaryWriter here and we have a byte array as input.