Is there a url encoder function in Hugo?

Is there a built in function in Hugo for encoding URLs? And if yes, how to use it in a partial? Thanks The above question is for social share buttons

I am told that parameters to the facebook sharer are to be encoded, since the post url itself is a parameter to the facebook sharer url. I noticed the following snippet ...

Lee mas