Jump to content

Superscript Register Symbol


dreimer

Recommended Posts

So I am trying to superscript a register symbol that is in my data field. It is the actual symbol and not an ascii code. I tried the following rule but it didn't work. Any ideas?? Do I need to convert the symbol to ascii in the data?

 

var s = Field("Description");

return s.replace(/\$/g,"<superscript>®</superscript>");

Link to comment
Share on other sites

That code is replacing a dollar sign with a superscripted reg mark. Try this:

var s = Field("Description");
return s.replace(/®/g,"<superscript>®</superscript>");

 

Though, I would suggest replacing ® with ® in the data so to avoid running into font issues across mac & windows platforms and then edit the code to look for:

var s = Field("Description");
return s.replace(/®/g,"<superscript>®</superscript>");

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...