Re: [orientdb] Strip Javascript and/or HTML code when inserting/updating

2015-03-23 Thread Luigi Dell'Aquila
Hi Stas, you could implement a hook for this. You can do this in Java or Javascript (see http://www.orientechnologies.com/docs/last/Hook.html ), just ensure to * bind your application logic on the following events: onBeforeCreate, onBeforeUpdate * let your hook functions return RECORD_CHANGED

[orientdb] Strip Javascript and/or HTML code when inserting/updating

2015-03-21 Thread Stas Dmitrenko
Hello. I'm new here. So could you please help? I want to strip all html characters from text before inserting to DB. Is there a way to do that in OrientDB? It can work like this: OrientDB got call with Insert or Update. Then it replaces all html characters with safe equivalent and saves it (or