I have a set of links with custom HTML5 data attributes like this one: data-test="justExample"
<a href="#" data-test="somethingSpecial">
This should output "Something Special"
</a>
I want to return this value as "Just Example" instead of “justExample".
Feel free to edit this jsfiddle I created.
LIVE DEMO