lib/volt/page/targets/helpers/comment_searchers.rb
def build_from_html(html)
    temp_div = nil
    %x{
      temp_div = document.createElement('div');
      var doc = jQuery.parseHTML(html);

      if (doc) {
        for (var i=0;i < doc.length;i++) {
          temp_div.appendChild(doc[i]);
        }
      }
    }
    return temp_div
  end
# Returns an unattached div with the nodes from the passed
# in html.
Returns an unattached div with the nodes from the passed
in html.
Returns an unattached div with the nodes from the passed in html .
def build_from_html(html)
    temp_div = nil
    %x{
      temp_div = document.createElement('div');
      var doc = jQuery.parseHTML(html);
      if (doc) {
        for (var i=0;i < doc.length;i++) {
          temp_div.appendChild(doc[i]);
        }
      }
    }
    return temp_div
  end
def build_from_html ( html ) temp_div = nil %x{ 
      temp_div = document.createElement('div');
      var doc = jQuery.parseHTML(html);

      if (doc) {
        for (var i=0;i < doc.length;i++) {
          temp_div.appendChild(doc[i]);
        }
      }
     } return temp_div end
Returns an unattached div with the nodes from the passed
in html.
Returns an unattached div with the nodes from the passed in html .
html