libSUFR
a LIBrary of Some Useful Fortran Routines
All Classes Namespaces Files Functions Variables Pages
sufr_text_html Module Reference

Procedures to manipulate text strings containing HTML code. More...

Functions/Subroutines

subroutine remove_html (str, debug)
 Remove HTML code from a string using all remove_html_* subroutines available in libSUFR.
 
subroutine remove_html_links (str, debug)
 Remove HTML links from a string (but keep the text in the link)
 
subroutine remove_html_images (str, debug)
 Remove code for HTML images from a string.
 
subroutine remove_html_bold_italics (str)
 Remove HTML bold and italics from a string.
 
subroutine remove_html_br_p_hr (str)
 Remove HTML
,.
 

Detailed Description

Procedures to manipulate text strings containing HTML code.

Function/Subroutine Documentation

◆ remove_html()

subroutine sufr_text_html::remove_html ( character, dimension(*), intent(inout) str,
logical, intent(in), optional debug )

Remove HTML code from a string using all remove_html_* subroutines available in libSUFR.

Parameters
strString to remove HTML code from
debugPrint debug info (T/F, optional)

Definition at line 36 of file text_html.f90.

References remove_html_bold_italics(), remove_html_br_p_hr(), remove_html_images(), and remove_html_links().

Here is the call graph for this function:

◆ remove_html_bold_italics()

subroutine sufr_text_html::remove_html_bold_italics ( character, dimension(*), intent(inout) str)

Remove HTML bold and italics from a string.

Parameters
strString to remove HTML code from

Definition at line 153 of file text_html.f90.

References sufr_text::remove_substring().

Referenced by remove_html().

Here is the call graph for this function:

◆ remove_html_br_p_hr()

subroutine sufr_text_html::remove_html_br_p_hr ( character, dimension(*), intent(inout) str)

Remove HTML
,.

...

,


from a string - replace them by a space

Parameters
strString to remove HTML code from

Definition at line 178 of file text_html.f90.

References sufr_text::replace_substring().

Referenced by remove_html().

Here is the call graph for this function:

◆ remove_html_images()

subroutine sufr_text_html::remove_html_images ( character, dimension(*), intent(inout) str,
logical, intent(in), optional debug )

Remove code for HTML images from a string.

Parameters
strString to remove HTML code from
debugPrint debug info (T/F, optional)

Definition at line 110 of file text_html.f90.

Referenced by remove_html().

◆ remove_html_links()

subroutine sufr_text_html::remove_html_links ( character, dimension(*), intent(inout) str,
logical, intent(in), optional debug )

Remove HTML links from a string (but keep the text in the link)

Parameters
strString to remove HTML code from
debugPrint debug info (T/F, optional)

Definition at line 61 of file text_html.f90.

References sufr_text::remove_substring().

Referenced by remove_html().

Here is the call graph for this function: