HttpHost element (View)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Renders the URL to the Web application containing the current SharePoint website, such as http://server.

  HTMLEncode = "TRUE | "FALSE"
  URLEncodeAsURL = "TRUE | "FALSE">

Elements and attributes

The following sections describe attributes, child elements, and parent elements.


Attribute Description
Optional Boolean. TRUE to convert embedded characters so that they are displayed as text in the browser. In other words, characters that could be confused with HTML tags are converted to entities.
Optional Boolean. Like URLEncode, but TRUE to specify that the string to encode is a path component of a URL so that forward slashes (/) are not encoded.

Child elements


Parent elements



  • Minimum: 0
  • Maximum: Unbounded


As an example, My server is <HttpHost/> returns the following: My server is

The following example constructs an opening <A> tag, using the HttpHost element to return the server path.

  <![CDATA[ <a href="  ]]>
<HttpHost URLEncodeAsURL="TRUE" />
<LookupColumn URLEncodeAsURL="TRUE" />
  <![CDATA[ ">  ]]>

See also