Default formatter for the URL
type.
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 decode the replies within a comment.
Utility method to decode the replies within a comment. Makes a recursive call to decodeCommentElements that in turn invokes this for nested replies.
The original comment that is to be checked for replies that need to be decoded
A list of comments that represent top level replies for the original comment
Utility method to modify the elements in a space that are encoded when submitted and stored.
Utility method to modify the elements in a space 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 space elements are encoded: name description
Returns true if protocol is https
Default formatter for the String
type.
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.