Skip to main content

urlize

Convert URLs in plain text into clickable links.

def urlize(
value: string,
autoescape: boolean = True
) - > string

Convert URLs in plain text into clickable links.

Parameters

NameTypeDescription
valuestringThe plain text content containing URLs to be converted into HTML links.
autoescapeboolean = TrueDetermines whether to escape HTML characters in the input text before processing.

Returns

TypeDescription
stringThe HTML string containing clickable anchor tags with nofollow attributes, marked as safe for rendering.