Documentation ¶
Overview ¶
Package text performs text manipulation on html strings it is used by projects and comments
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertLinks ¶
ConvertLinks returns the text with various transformations applied - bare links are turned into anchor tags, and @refs are turned into user links. this is somewhat fragile, better to parse the html
func ConvertNewlines ¶
ConvertNewlines converts \n to paragraph tags if the text already contains paragraph tags, return unaltered
func GetLinks ¶
GetLinks checks the http status codes for the URLs in the string returns true if status code is within acceptable range or no urls was found returns false if status code is not withFing acceptable range
func GetUsernames ¶
GetUsernames checks the text for usernames and returns them if found
Types ¶
This section is empty.