/* E X A M P L E -----------------------------------------------
		$feed = new RSS();
		$feed->title       = "RSS Feed Title";
...

PHP RSS Writer Class

by https://www.google.com/accounts/o8/id?id=AItOawkrlIWZOJFG_JL2F2-39pufYjElslWtCGU, August 23, 2011 07:01, 18 refactorings, tagged with class, xml, php, html, web, apache, server, write
D41d8cd98f00b204e9800998ecf8427e Talk
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
...

PHP Floating sidebars

by RMP, July 17, 2011 02:19, No refactoring, tagged with html, css, float, menus

This site has usual three c...

D41d8cd98f00b204e9800998ecf8427e Talk
/// <summary>
        /// Takes HTML and list of all positions of h3 tags and splits them.
        /// </summary>
...

C# Split HTML from header tag ...

by Ender, March 09, 2011 12:52, 2 refactorings, tagged with string, html, C#, parse

The HTML is pre-parsed to g...

C98e188ba63a7875d61a77d7aaa3f5c7 Talk
<html>

<head>
...

JavaScript Simple Dropdown Menu I'm Wo...

by Bryan Hadaway, January 02, 2011 12:42, 2 refactorings, tagged with javascript, html, css, dropdown menu, minimalist

The menu now is CSS/HTML on...

8bc1f3e41b672b03a339d56f81c8e253 Talk
class FormComponents
{
        /*
...

PHP HTML Select Menu Template

by letseatfood.myopenid.com, August 11, 2010 02:28, 27 refactorings, tagged with template, php, html, select_tag

This method outputs a stand...

A37583acaede070320d6f28146074934 Talk
arr = []
b={:a => "option1", :b => "option2"}
b.each_pair{ |key,value| arr << "#{key}=#{value}" }
...

Ruby HTML query string

by jalapinto.myopenid.com, April 29, 2010 00:04, 5 refactorings, tagged with ruby, html, query, params

Trying to create the query ...

55502f40dc8b7c769880b10874abc9d0 Talk
#<html>
<head>
	<title>MAGIC AND BEES</title>
...

PHP horrific html

by getopenid.com/thelittleninja, April 12, 2010 23:10, 6 refactorings, tagged with html, validate

needs to validate

F7f392b52ef3c0e342ff0ba90ae1ccd9 Talk
<?php
function get_title($html_page)
{
...

PHP Get Title of HTML page

by Nathan, February 09, 2010 14:02, 3 refactorings, tagged with html, regular expression, title

Extract and return the bits...

D5145c421cd25af6fa577c15219add90 Talk
def build_criteria(data_cols, i)
     filterHTML = ''
     typeObjects = ''
...

Ruby Helper Method could be more...

by Danny Peck, April 23, 2009 20:53, 5 refactorings, tagged with ruby, html, content_tag, select_tag

Any help is appreciated.

8f5553306c2cf7f4b14153f6117f8e9b Talk
public string CleanHtml(object Html) {
	var s = Html.ToString();
	var b = new StringBuilder();
...

C# C# HTML Encoding

by GateKiller, March 05, 2009 15:08, 6 refactorings, tagged with html, C#, sanitize

This is my own attempt at w...

98c852e2d9b26249745ea92c72964d3f Talk
/// <summary>
    /// This function actually alters the text and makes the necessary changes.
    /// </summary>
...

C# HTML Reprocessing Code

by nesteruk, February 23, 2009 15:07, 2 refactorings, tagged with html, C#, parse

The code below is evil. It'...

F01cbd2238e2a78e4c43fa596f51d6a1 Talk
<?php
function innerHTML($node){
  $doc = new DOMDocument();
...

PHP innerHTML of a DOMElement

by hubfactor, January 19, 2009 00:56, 3 refactorings, tagged with php, html

The equivalent of the non-s...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
#!/usr/bin/php
<?php
/**
...

PHP HTML Filter

by grom, October 23, 2008 23:00, 5 refactorings, tagged with parser, php, html, sanitize

Only allow subset of HTML. ...

A14537020ec5b11fea3b956353724860 Talk
private static Regex _namedtags = new Regex
    (@"</?(?<tagname>\w+)[^>]*(\s|$|>)",
    RegexOptions.Singleline | RegexOptions.ExplicitCapture | RegexOptions.Compiled);
...

C# Balance HTML Tags

by Jeff Atwood, July 11, 2008 08:40, 30 refactorings, tagged with tags, html, balance, unbalanced

For the subset of HTML tags...

51d623f33f8b83095db84ff35e15dbe8 Talk
private static Regex _tags = new Regex("<[^>]*(>|$)",
    RegexOptions.Singleline | RegexOptions.ExplicitCapture | RegexOptions.Compiled);
private static Regex _whitelist = new Regex(@"
...

C# Sanitize HTML

by Jeff Atwood, June 20, 2008 08:24, 64 refactorings, tagged with html, xss, sanitize

Takes a provided HTML strin...

51d623f33f8b83095db84ff35e15dbe8 Talk
<?php

function fetch($url,$start,$end){
...

PHP Wikipedia API and text form...

by z3ro, January 09, 2008 18:37, 4 refactorings, tagged with convert, html, plain html, formatting, parser, regex, xml, php, wikimedia, api, wikipedia

I need to add Wikipedia's i...

E90ba01aea329491b312280d1eea606b Talk
<%= (@post.category ? @post.category.name : '') + ' ' + link_to(@post.title, post_path(@post)) %>

Ruby Handling nil object

by macournoyer, November 14, 2007 02:07, 13 refactorings, tagged with rails, html

@post.category can be nil, ...

Bfec5f7d1a4aaafc5a2451be8c42d26a Talk
curl http://www.cnn.com | perl -ne 'm/>([^<].*?[^>])<\// && print$1."\n"'

Perl Perl one-liner to extract x...

by griflet, November 13, 2007 17:19, 4 refactorings, tagged with xml, perl, oneliner, one-liner, tags, html, xhtml

Hello,
I'm a web-scrapping...

Aae34a7973a8d98e53764a1c89090c55 Talk