Return base url given a request.
Return base url given a request. This will add http or https to the front, for example https://localhost:9443 will be returned if it is using https.
Utility method to modify the elements in a collection that are encoded when submitted and stored.
Utility method to modify the elements in a collection that are encoded when submitted and stored. These elements are decoded when a view requests the objects, so that they can be human readable.
Currently, the following collection elements are encoded:
name description
Utility method to modify the elements in a dataset that are encoded when submitted and stored.
Utility method to modify the elements in a dataset that are encoded when submitted and stored. These elements are decoded when a view requests the objects, so that they can be human readable.
Currently, the following dataset elements are encoded: name description
Returns protocol in request stripping it of the : trailing character.
Returns protocol in request stripping it of the : trailing character.
Encoded text can have newlines.
Encoded text can have newlines. When displayed via a view, they must be translated into linebreaks in order to render correctly.
The text to be updated with linebreaks
An updated String with newlines replaced.