What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-20 22:13:12
Wrap the last word of a paragraph in span tags using jQuery
jQuery(document).ready(function($){ $('p').html(function(){ // separate the text by spaces var text= $(this).text().split(' '); // drop the last word and store it in a variable var last = text.pop(); // join the text back and if it has mo... Add solution -
Html 2021-11-10 12:21:14
Wrap the last word of a paragraph in span tags using jQuery
jQuery(document).ready(function($){ $('p').html(function(){ // separate the text by spaces var text= $(this).text().split(' '); // drop the last word and store it in a variable var last = text.pop(); // join the text back and if it has mo... Add solution -
Shell/Bash 2021-09-13 17:23:02
jq for html
Install pup command for structuring in html format outputs into lines: brew install pup Then you can use pup command to split, parse or wrap html outputs: cat file.html | pup #html is parsed into an optimally visible format cat file.html | pup 'span#See_a... Add solution