Not logged in. · Lost password · Register
Forum: General discussion RSS
Single quotes in track names
Jonathan Stott (Guest) #1
No profile available.
Link to this post
If a track has a single quote ' in it's name, then I can't add it to the playlist (obviously because the Javascript thinks it's a string delimiter). Any chance of checking and escaping these in the <#browser_enc_filename> tags and whatnot?

Azimuth #2
Member since Jan 2003 · 427 posts · Location: Chicago, Illinois - USA
Group memberships: Members
Show profile · Link to this post
Maybe this from the documentation addresses your issue...

escape some special characters
  <#tagname escape=true>

This parameter makes BrowseAmp replace the \, ' and " with their JavaScript/HTML safe equivalent \, \' and &quot;. Feel free to combine it with the urlencoded parameter. Just add this parameter to the html-tag. You don't need to set its value to "true". Just don't leave it blank.

<#SongTitle escape=true>
<#SongTitle escape=1>
<#SongTitle escape=yes>
<#SongTitle escape=yeah>

does always the same ;-)
Jonathan Stott (Guest) #3
No profile available.
Link to this post
That'll teach me to RTFM :-D
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 257.6 ms (151.6 ms) · 41 database queries in 101.7 ms
Current time: 2019-12-12, 06:34:52 (UTC +00:00)