S
S
Salim_Gareev2018-08-25 10:54:57
go
Salim_Gareev, 2018-08-25 10:54:57

Htmlspecialchars in golang?

Good day.
Is there an alternative in go for the php function - htmlspecialchars?
As an option, of course, you can use strings.Replace for each character, but maybe there is a more correct way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
stratosmi, 2018-08-25
@Salim_Gareev

It html.EscapeString?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question