templateStringExpression

This tag wraps in the input in an eval and backticks

Created by: hackvertor
Installed 1 times

Category: Convert

Created on: Thursday, December 19, 2024 at 1:45:45 PM

Updated on: Saturday, December 21, 2024 at 11:40:19 AM

This is a built in tag
Tag arguments
[]
Code
class templateStringExpression {
  encode(input) {
    const backtick = "`";
    return eval(backtick + input + backtick);
  }
}