I have a Java EE web application and I want to use server side jQuery to process some HTML. Here's the process -
- User installs a chrome extension that I wrote
- User visits a web page on their browser
- The chrome extension selects an element on the page and puts it in a string. By element, I mean a
<div>
with numerous child elements (that may have their own child elements, etc...) - The chrome extension then sends the HTML string by AJAX to a server
- On the server I then want to process this HTML using jQuery.
I could do the processing in the client's browser, but I choose to send it to the server because I don't want the javascript/jquery code to be available to everybody.
So, is it possible to use jQuery on the server to process HTML?