FIX: don't validate and render the polls inside a quoted post. (PR #15019)

Previously, we had issues while approving the posts since we validated the polls inside quotes.


please take every opportunity to remove jquery usage

There are also linting errors to fix.

This can wait till 2.9

@vinothkannans can you rebase.