Can anyone tell me what this HTML command is/does? Thx...
Can anyone tell me what this HTML command is/does? Thx...
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
html calls it a "non breakable space"
I'm not sure why it's "non breakable" - but it works just like the space bar.
The reason I asked is because I wrote a function to extract the text from tagged HTML pages. After running the function, I noticed this strange "tag". Still, running a superficial search on the net yeilded no direct explanation. So I decided to ask here. Thanks a lot crescen.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
It's been a while since I did anything with html, but if I recall correctly, it has to do with line wrapping. If you won't want the line broken yet, you use that. Something like that anyway.
Quzah.
Hope is the first step on the road to disappointment.
I think most people use it to fill an empty table cell.
'During my service in the United States Congress, I took the initiative in creating the Internet.' - Al Gore, March 9, 1999: On CNN's Late Edition
I found that what it does is fix a compatibility issue between IE and Netscape. Supposedly, if there is a blank table cell in Netscape, it will screw up the formatting, so the NBSB was concocted to fill any empty cells...
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
See     I can use it in my posts :P
     4 "& nbsp" make a tab
What is C++?
Pretty cool, dude
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
The reason that's there is because in HTML, only one space is recognized, all others are truncated.... So say you wanted to type some text up, and there were 5 spaces in between one word and another, you'd place that function between the two words 5 times. Otherwise, if you just hit space 5 times, you'd only see one space in between. If you want to take out anything HTML specific, there's a whole slew of ampersand functions like that. Just look at any HTML resource online and you'll find all the codes... somwhere.