In my app I need to allow users to do calculations such as add/subtract/divide values from rows in different tables. Is there a safer way to do this than using eval()? Is it better to take a string as an input and write my own functions to parse the string to do calculations?
Share
just filter out the non digits and non operands