Change spaces (in user-entered padnames or urls) to underscore characters, and vice versa when showing as page title /pad2.js, timeslider.html).
This avoids breaking urls when saving or e-mailing them, if the user has spaces in padnames.
Example: a pad name such as "My first pad" or My%20first%20pad" is to be rewritten as "My_first_pad". Both versions are internally treated as My_first_pad only.
- http://www.example.com/p/My first%20pad ==> treat internally as http://www.example.com/p/My_first_pad .
- when pad is shown, show HTML page title as "My first pad"
Change spaces (in user-entered padnames or urls) to underscore characters, and vice versa when showing as page title /pad2.js, timeslider.html).
This avoids breaking urls when saving or e-mailing them, if the user has spaces in padnames.
Example: a pad name such as "My first pad" or My%20first%20pad" is to be rewritten as "My_first_pad". Both versions are internally treated as My_first_pad only.