def nl_to_br(value):
    """
    Replaces the occurrences of the newline character in the
    string with the HTML break line character.

    This is useful for one trying to convert a plain text
    representation of a string into HTML representation.

    :type value: String
    :param value: The base value that is going to be used in
    the conversion to the HTML value.
    :rtype: String
    :return: The string containing the newline characters replaced
    with line breaking HTML tags.
    """
    return value.replace('\n', '<br/>\n')
