dm_html_encode Function

public pure function dm_html_encode(input) result(output)

Returns encoded input string, with some HTML special characters replaced (", &, ', <, >).

It may be faster to count the number of occurences of special characters, and only allocate the output string once at start.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: input

Input string.

Return Value character(len=:), allocatable

Encoded string.


Called by

proc~~dm_html_encode~~CalledByGraph proc~dm_html_encode dm_html_encode proc~dm_atom_from_logs dm_atom_from_logs proc~dm_atom_from_logs->proc~dm_html_encode proc~dm_html_anchor dm_html_anchor proc~dm_html_anchor->proc~dm_html_encode proc~dm_html_beat dm_html_beat proc~dm_html_beat->proc~dm_html_encode proc~dm_html_beat->proc~dm_html_anchor proc~dm_html_mark dm_html_mark proc~dm_html_beat->proc~dm_html_mark proc~dm_html_beats dm_html_beats proc~dm_html_beats->proc~dm_html_encode proc~dm_html_beats->proc~dm_html_anchor proc~dm_html_beats->proc~dm_html_mark proc~dm_html_cgi_env dm_html_cgi_env proc~dm_html_cgi_env->proc~dm_html_encode proc~dm_html_error dm_html_error proc~dm_html_error->proc~dm_html_encode proc~dm_html_figure dm_html_figure proc~dm_html_figure->proc~dm_html_encode proc~dm_html_header dm_html_header proc~dm_html_header->proc~dm_html_encode proc~dm_html_heading dm_html_heading proc~dm_html_header->proc~dm_html_heading proc~dm_html_link dm_html_link proc~dm_html_header->proc~dm_html_link proc~dm_html_nav dm_html_nav proc~dm_html_header->proc~dm_html_nav proc~dm_html_heading->proc~dm_html_encode proc~dm_html_small dm_html_small proc~dm_html_heading->proc~dm_html_small proc~dm_html_link->proc~dm_html_encode proc~dm_html_log dm_html_log proc~dm_html_log->proc~dm_html_encode proc~dm_html_log->proc~dm_html_anchor proc~dm_html_log->proc~dm_html_mark proc~dm_html_logs dm_html_logs proc~dm_html_logs->proc~dm_html_encode proc~dm_html_logs->proc~dm_html_anchor proc~dm_html_logs->proc~dm_html_mark proc~dm_html_mark->proc~dm_html_encode proc~dm_html_node dm_html_node proc~dm_html_node->proc~dm_html_encode proc~dm_html_nodes dm_html_nodes proc~dm_html_nodes->proc~dm_html_encode proc~dm_html_nodes->proc~dm_html_anchor proc~dm_html_observ dm_html_observ proc~dm_html_observ->proc~dm_html_encode proc~dm_html_observ->proc~dm_html_anchor proc~dm_html_observ->proc~dm_html_heading proc~dm_html_request dm_html_request proc~dm_html_observ->proc~dm_html_request proc~dm_html_responses dm_html_responses proc~dm_html_observ->proc~dm_html_responses proc~dm_html_observs dm_html_observs proc~dm_html_observs->proc~dm_html_encode proc~dm_html_observs->proc~dm_html_anchor proc~dm_html_p dm_html_p proc~dm_html_p->proc~dm_html_encode proc~dm_html_request->proc~dm_html_encode proc~dm_html_responses->proc~dm_html_encode proc~dm_html_script dm_html_script proc~dm_html_script->proc~dm_html_encode proc~dm_html_sensor dm_html_sensor proc~dm_html_sensor->proc~dm_html_encode proc~dm_html_sensors dm_html_sensors proc~dm_html_sensors->proc~dm_html_encode proc~dm_html_sensors->proc~dm_html_anchor proc~dm_html_small->proc~dm_html_encode proc~dm_html_span dm_html_span proc~dm_html_span->proc~dm_html_encode proc~dm_html_target dm_html_target proc~dm_html_target->proc~dm_html_encode proc~dm_html_targets dm_html_targets proc~dm_html_targets->proc~dm_html_encode proc~dm_html_targets->proc~dm_html_anchor proc~dm_html_nav->proc~dm_html_anchor