Skip to content
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

Add helper to escape enhanced text #75

Open
zmughal opened this issue May 21, 2021 · 1 comment
Open

Add helper to escape enhanced text #75

zmughal opened this issue May 21, 2021 · 1 comment

Comments

@zmughal
Copy link
Member

zmughal commented May 21, 2021

I have to test this some more, but this could be useful as a utility method when dealing with string interpolation:

# escapes enhanced text for Gnuplot
my $escape_enhtext = sub { shift =~ s,([{}^_@&~\\]),\\$1,gr };
@mohawk2
Copy link
Member

mohawk2 commented Apr 13, 2024

Should this be an exportable utility function? I prefer not to have these issues just sit there open forever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants