Spoiler Html Code

I've been looking for what I would term as a spoiler tag. What I want it to see a link that says 'View Hidden Text' or something to that effect and when you click on it, then the hidden text appears (wether it be inline or in a popup windows doesn't matter too much to me).
All the searching just leads me to code that works in forums. I actually have a spoiler code setup in my forums at G4TV. Look at the example of what I mean See where it says: Spoiler Alert: click to view --> Show
I want this but just for a website.

⚜️ Tip: When inline code itself contains a backtick, or a fenced code block itself contains a code fence, the interior backticks and fences can cause the code region to close early. In these cases, the fences can be adjusted to accommodate the code. The rest of this section is about dealing with corner cases. Consider the following example.

I've been looking for what I would term as a spoiler tag. What I want it to see a link that says 'View Hidden Text' or something to that effect and when you click on it, then the hidden text appears (wether it be inline or in a popup windows doesn't matter too much to me).
All the searching just leads me to code that works in forums. I actually have a spoiler code setup in my forums at G4TV. Look at the example of what I mean See where it says: Spoiler Alert: click to view --> Show
I want this but just for a website.
Code

Html Code Spoiler Text

  • To remove a spoiler, click on a spoiler block and then click 'Remove spoiler'. The spoiler block will be converted to a plain paragraph. Note: For spoiler blocks to work properly you need to add to your web pages CSS/JavaScript code that defines look and behavior of the spoiler blocks. An example of a spoiler on a web page using JQuery.
  • The plugin allows to create content spoilers with simple shortcode. Sergey Kuzmich 2,000+ active installations Tested with 5.4.4 Updated 7 months ago Advanced Spoiler.