New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escape markdown characters in user input strings #171
Comments
Nice catch ! Thanks @anku255 |
Hi! @kefranabg I am thinking of escaping markdown characters in
|
Let's just escape
Not sure to get it. Could you provide an example? |
Let's say we also want to have |
Instead of doing a list, maybe we could use the escape markdown function inside each social network object prompt, with the transform property? If we consider that when we want to add a new social network function, we take a look at existing ones, it would be harder to forget the escape markdown what do you think? |
Do you mean the I looked into the documentation and it says -
It doesn't change the answer. I tried it and only the output shown to the user is transformed but the actual answer value is not. Take a look at the screen record below: |
Oops, I mean the |
The is an example in |
Oh yeah! I forgot about that one 😄 Okay, how should I go about this? There is already a function
OR inside the question -
I prefer the first approach because of the DRY principle. What do you think? |
Inside the |
Describe the bug
Sometimes the username can itself contain markdown characters and it would render improperly. We need to escape markdown character for it to actually render the correct username.
For example:
renders as
expected output
To Reproduce
Use markdown characters while entering username/email.
I am not exactly sure how to solve this but I think we need to create a function that will escape all markdown characters and use that function to sanitize user input.
I would like to take a shot at this :)
The text was updated successfully, but these errors were encountered: