I would like to know why some times code is not in one line and what I have to do to fix it? (Problem with regex?) It is look like this:
**var PelnyOpisEdytuj = '@Model.PelnyOpis';**
Problem example:

I found solution maybe is not perfect but work correct. I created div with argument and later I take data. There was problem with regex.
<div id="DivExample" style="display: none;">
@Html.Raw(@Model.ExampleText)
</div>
<script type="text/javascript">
//komenatatz zapytanie
var DivExampleData= $('#DivExample').text();
</script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With