Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceAllWithAlt ¶
ReplaceAllWithAlt replaces all the <img> elements in HTML code with its alt text.
For for example:
var html string = `Hello <img src="word.png" alt="world">, how are you<img src="question-mark.png" alt="?" />` replaced := htmlimg.ReplaceAllWithAlt(html) // replaced == `Hello world, how are you?`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.