1 2 3 4
class FormComponents
{
/*
...
PHP HTML Select Menu Template
by letseatfood.myopenid.com,
August 11, 2010 02:28,
1 refactoring, tagged with php, template, html, select_tag
1 2 3 4
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 params, ruby, html, query
Trying to create the query ...
1 2 3 4
(function($) { $.fn.SelectedNav = function(options) { ...
JavaScript jQuery plugin: add class to...
by chad.tolkien.id.au,
February 15, 2010 07:03,
4 refactorings, tagged with jquery, plugin, html, website
I'm using this plugin in co...
1 2 3 4
<?php function get_title($html_page) { ...
PHP Get Title of HTML page
Extract and return the bits...
1 2 3 4
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, content_tag, html, select_tag
Any help is appreciated.
1 2 3 4
public string CleanHtml(object Html) { var s = Html.ToString(); var b = new StringBuilder(); ...
C# C# HTML Encoding
This is my own attempt at w...
1 2 3 4
/// <summary> /// This function actually alters the text and makes the necessary changes. /// </summary> ...
C# HTML Reprocessing Code
The code below is evil. It'...
1 2 3 4
<?php function innerHTML($node){ $doc = new DOMDocument(); ...
PHP innerHTML of a DOMElement
The equivalent of the non-s...
1 2 3 4
private static Regex _namedtags = new Regex (@"</?(?<tagname>\w+)[^>]*(\s|$|>)", RegexOptions.Singleline | RegexOptions.ExplicitCapture | RegexOptions.Compiled); ...
C# Balance HTML Tags
For the subset of HTML tags...
1 2 3 4
private static Regex _tags = new Regex("<[^>]*(>|$)", RegexOptions.Singleline | RegexOptions.ExplicitCapture | RegexOptions.Compiled); private static Regex _whitelist = new Regex(@" ...
C# Sanitize HTML
Takes a provided HTML strin...
1 2 3 4
<?php function fetch($url,$start,$end){ ...
PHP Wikipedia API and text form...
by z3ro,
January 09, 2008 18:37,
1 refactoring, tagged with wikipedia, api, wikimedia, php, xml, regex, parser, formatting, plain html, html, convert
I need to add Wikipedia's i...
1
<%= (@post.category ? @post.category.name : '') + ' ' + link_to(@post.title, post_path(@post)) %>
Ruby Handling nil object
@post.category can be nil, ...
This method outputs a stand...