Changes the contents of the section.
@param {String|DomNode} content
12107
function(content){
			if (typeof content === 'string') {  //$NON-NLS-0$
				this._contentParent.innerHTML = content;
			} else {
				this._contentParent.innerHTML = ""; //NON-NLS-0$
				this._contentParent.appendChild(content);
			}
		}
1223782
public void setContents(ArrayList contents) {
		this.contents = contents;
		containsMarkupText = false;
		containsSingleString = false;
		Iterator i = contents.iterator();

		while (i.hasNext()) {
			Object o = i.next();
			if (!(o instanceof Node)) {
				if (o instanceof String && o.toString().trim().length() > 0) {
					if (contents.size() == 1) {
						containsSingleString = true;
					} else {
						containsSingleString = false;
						containsMarkupText = true;
					}
				}
			} else {
				Node node = (Node) o;
//				node.setDepth(depth + 1);
				node.parentNode = this instanceof Node ? (Node) this : null;
			}
		}
	}
33670
public function appendSection($name, $content = null)
    {
        $section = $this->getSectionCollection()->findOrCreate($name);

        $content ? $section->appendContent($content) : $section->start();
    }
1372197
public function setContent(string $content): void {
		if ($this->compiled) {
			throw new ViewException("Attempt to alter view after compilation.", ViewException::AFTER_COMPILE_ALTERATION);
		}
		
		// like the header above, $content might be a file or the
		// actual content
		
		$this->content = is_file($content)
			? file_get_contents($content)
			: $content;
	}
774242
function setContent(node, content, prefix, suffix) {
    if (content.length > 0) {
      if (prefix && suffix)
        node._bfs_text = prefix + content + suffix;
      else
        node._bfs_text = content;
    } else
      node._bfs_text = '';
  }
893986
protected function startSection($section, $content = '')
    {
        if ($content === '') {
            if (ob_start()) {
                $this->scope->sectionStack[] = $section; //push
            }
        }
        else {
            $this->storeSection($section, $content);
        }
    }
600442
public void setContentCentered(boolean contentCentered) {
        boolean oldVal = this.contentCentered;
        this.contentCentered = contentCentered;
        if (oldVal != this.contentCentered && content != null && content.isAttached()) {
            if (this.contentCentered) {
                centerContent();
                initWindowResize();
            } else {
                clearCenterContent();
            }
        }
    }
398302
public static void setDirectTextContent(final Node elementToChange, final String asString) {
        assert elementToChange.getNodeType() != Node.DOCUMENT_NODE;
        if (Node.ATTRIBUTE_NODE == elementToChange.getNodeType()) {
            elementToChange.setTextContent(asString);
            return;
        }
        List<Node> nodes = new LinkedList<Node>();
        List<Node> nodes2 = new LinkedList<Node>();
        for (Node n : nodeListToIterator(elementToChange.getChildNodes())) {
            if (Node.TEXT_NODE == n.getNodeType()) {
                continue;
            }
            nodes.add(n);
        }
        if ((asString != null) && (!asString.isEmpty())) {
            elementToChange.setTextContent(asString);
            for (Node n : nodeListToIterator(elementToChange.getChildNodes())) {
                if (Node.TEXT_NODE != n.getNodeType()) {
                    continue;
                }
                nodes.add(n);
            }
        }
        removeAllChildren(elementToChange);
        for (Node n : nodes) {
            elementToChange.appendChild(n);
        }
        for (Node n : nodes2) {
            elementToChange.appendChild(n);
        }

    }
1178021
function modifyHTML(page, operations) {
    var html = page.getContent();
    var $ = cheerio.load(html);

    return Promise.forEach(operations, function(op) {
        return op($);
    })
    .then(function() {
        var resultHTML = $.html();
        return page.set('content', resultHTML);
    });
}
1148861
function resetAndCompileContents(contents, newOptions) {
  input.setValue(contents);
  updateLocation(contents);
  options.setFromObject(newOptions);
  compileContents(contents);
}
589076
function setNodeContent(node, content) {
	// find caret position and replace it with content, if possible
	if (node.value) {
		const ranges = findUnescapedTokens(node.value, caret);
		if (ranges.length) {
			node.value = replaceRanges(node.value, ranges, content);
			return;
		}
	}

	if ((node.name && node.name.toLowerCase() === 'a') || node.hasAttribute('href')) {
		// special case: inserting content into `<a>` tag
		if (reUrl.test(content)) {
			node.setAttribute('href', (reProto.test(content) ? '' : 'http://') + content);
		} else if (reEmail.test(content)) {
			node.setAttribute('href', 'mailto:' + content);
		}
	}

	node.value = content;
}
630559
public void addContent(Content content) {
    Content newContent = new Content();
    newContent.setType(content.getType());
    newContent.setValue(content.getValue());
    this.content = addToList(newContent, this.content);
  }
1247286
public final void setContent(ContentPart<?>[] content)
    {
        //clear non relevant flags
        this.contentString=null;
        this.contentBinary=null;
        this.contentType=ContentType.MULTI_PART;

        if(content==null)
        {
            this.contentParts=null;
        }
        else
        {
            this.contentParts=content.clone();
        }
    }
1071865
public void setContent(Component content) {

        m_contentPanel.setContent(content);
        if (content instanceof Layout.MarginHandler) {
            ((Layout.MarginHandler)content).setMargin(true);
        }
    }
160558
function () {
        
        var n = this.c[2].textContent;

        if(!isNaN( n )){ 
            this.value = this.numValue( n ); 
            this.update(true); 
        }

        else this.c[2].textContent = this.value;

    }
62702
function prepend(element, content) {
  if (isString(content)) {
    return element.insertAdjacentHTML('afterBegin', content);
  } else {
    return element.insertBefore(normalizeContent(content), element.firstChild);
  }
}
1107288
public void setContent(Content content) {
        setSize(content.getContent().length);
        setAttachmentContentId(content.getId());
    }