channel uniquename with no safe HTML characters #409
Labels
code-generation
issue deals with generated code
difficulty: easy
fix is easy in difficulty
status: help wanted
requesting help from the community
type: bug
bug in the library
type: community enhancement
feature request not on Twilio's roadmap
Version: 3.27.1
Code Snippet
Exception/Log
Steps to Reproduce
The function is ignoring the characters after '#' because in HTML the # character has a specific meaning. In order to fix this, you must use the encodeURIComponent function:
client.chat.services(result.twilio_service_id).channels(encodeURIComponent(uniqueName))
The text was updated successfully, but these errors were encountered: