I want to convert "." into "।" that is a Hindi full stop Symbol or Character
I am using the bellow script to convert "." into "।" which is the Hindi Stop symbol. I am using this code in a blogger post, This code gives me code like below
।
The code thrown on blogger Platform by this Following Script
When I am using Pipe | in place of ।, it works perfectly and there is no error. But Pipe "|" is not the right symbol for a full stop in Hindi.
Kindly Suggest converting "." into "।" for a blogger like similar code
Please Correct me If I am wrong. I Love Blogger but I don't have much knowledge of JavaScript and Jquery.
I have used some bellow code but it did not work
$('textarea').on("keyup", function(e) {
var val = $(this).val();
var str = val.replace('.', '।');
$(this).val(str);
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<textarea></textarea>
Please try a page with JUST this
<!doctype html>
<html dir='ltr' lang='en-GB'>
<head>
<meta charset="UTF-8">
<title>test page</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(function() {
$('textarea').on("keyup", function(e) {
var val = $(this).val();
var str = val.replace('.', '।');
$(this).val(str);
});
});
</script>
</head>
<body>
<textarea></textarea>
</body>
</html>