H
H
Hellas2016-08-12 15:21:02
JavaScript
Hellas, 2016-08-12 15:21:02

How to replace %20 with dash in url in nodejs?

You need to replace '%20' with '-' in URLs.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Shatokhin, 2016-08-12
@iShatokhin

unescape(str).replace(/\s+/,'-');

A
Alexander Aksentiev, 2016-08-12
@Sanasol

string.replace ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question